We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab00745 + 55de3fe commit cc268baCopy full SHA for cc268ba
histomicsui/web_client/panels/MetadataPlot.js
@@ -331,7 +331,10 @@ var MetadataPlot = Panel.extend({
331
if (!significant || significant < 1) {
332
significant = 3;
333
}
334
- const digits = Math.min(significant, Math.max(0, significant - Math.floor(Math.log10(Math.abs(val)))));
+ let digits = Math.min(significant, Math.max(0, significant - Math.floor(Math.log10(Math.abs(val)))));
335
+ if (parseFloat(val) === parseInt(val, 10)) {
336
+ digits = 0;
337
+ }
338
return val.toFixed(digits);
339
},
340
0 commit comments