We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d86f8a commit 4e58ec4Copy full SHA for 4e58ec4
benchmark/common.js
@@ -267,7 +267,7 @@ class Benchmark {
267
function nanoSecondsToString(bigint) {
268
const str = bigint.toString();
269
const decimalPointIndex = str.length - 9;
270
- if (decimalPointIndex < 0) {
+ if (decimalPointIndex <= 0) {
271
return `0.${'0'.repeat(-decimalPointIndex)}${str}`;
272
}
273
return `${str.slice(0, decimalPointIndex)}.${str.slice(decimalPointIndex)}`;
0 commit comments