http://www.merlyn.demon.co.uk/js-flaws.htm#Auto

this code is useful for IE8, it is not easy to implement fully spec compatible toFixed and other methods, simplest way - to use "BigInteger"
additiional test-cases:
(0.5).toFixed(0) === "1" 
(1.255).toFixed(2) === "1.25"
(1000000000000000128).toFixed(0) === "1000000000000000128"