mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 21:51:51 +02: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 dat.excitations.reduce(async (promise,el)=> {
|
||||||
await promise;
|
await promise;
|
||||||
var node = document.createElement("div");
|
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
|
node.hidden=true
|
||||||
exPar.appendChild(node);
|
exPar.appendChild(node);
|
||||||
await MathJax.typesetPromise();
|
await MathJax.typesetPromise();
|
||||||
|
@ -58,7 +58,7 @@ class excitation{
|
|||||||
this.Eabs=Eabs;
|
this.Eabs=Eabs;
|
||||||
}
|
}
|
||||||
toString() {
|
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