mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
set significant figures to 3
This commit is contained in:
parent
e476f04011
commit
bf8449e050
@ -49,7 +49,7 @@
|
||||
await dat.excitations.reduce(async (promise,el)=> {
|
||||
await promise;
|
||||
var node = document.createElement("div");
|
||||
node.innerHTML= String.raw`${LatexInline[0]} ${el.start.toLaTeX()} \rightarrow ${el.end.toLaTeX()}${LatexInline[1]}, ${LatexInline[0]}${el.Eabs}\:\mathrm{eV}${LatexInline[1]}`;
|
||||
node.innerHTML= String.raw`${LatexInline[0]} ${el.start.toLaTeX()} \rightarrow ${el.end.toLaTeX()}${LatexInline[1]}, ${LatexInline[0]}${el.Eabs.toPrecision(3)}\:\mathrm{eV}${LatexInline[1]}`;
|
||||
node.hidden=true
|
||||
exPar.appendChild(node);
|
||||
await MathJax.typesetPromise();
|
||||
|
@ -58,7 +58,7 @@ class excitation{
|
||||
this.Eabs=Eabs;
|
||||
}
|
||||
toString() {
|
||||
return this.start+ ', ' + this.end +', '+ this.Eabs;
|
||||
return this.start+ ', ' + this.end +', '+ this.Eabs.toPrecision(3);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user