I am wondering how to remove decimals in large numbers without it having to round off? My float is: number = 32.223516
The result that I want is 32223516.
When I do this: parseInt(number * 1000000, 10) it gives me 32223515.
And if I use Math.ceil or Math.round, it'll be a problem for cases that would need it to round down.
Is there a cleaner way to do this?
Advance thanks!