floating point - Truncate (not round off) decimal numbers in javascript - Stack Overflow
I am trying to truncate decimal numbers to decimal places. Something like this: 5.467 -> 5.46 985.943 -> 985.94 toFixed(2) does just about the right thing but it rounds off ......