Hacker News new | ask | show | jobs
by andromaton 1052 days ago
The snippet for fetching performance numbers is useful but it's cargo culting (ie, using incorrectly and needlessly) Number.EPSILON [1], besides not using the built in toFixed(2)

How universal is the drive to try to keep others from making needless mistakes?

[1] "FCP is " +Math.round((fcp + Number.EPSILON) * 100) / 100