The default implementation of javascript\'s \"Number.toFixed\" appears to be a bit broken.
console.log((8.555).toFixed(2)); // returns 8.56 console.log((
It's probably related to floating point problems, see How to deal with floating point number precision in JavaScript?