Results 1 to 19 of 19
Oct 4, 2013, 11:09 #1
- Join Date
- Mar 2013
- 2 Post(s)
- 0 Thread(s)
Internet Explorer strips decimals
I have the following problem with IE when making calculations with floating-point numbers.
For instance, I have a div, which width is 150px and length 150px. I am subtracting say 15.78775456545464 from its width.
div.style.width = (parseFloat(div.style.width) - 15.78775456545464) + "px";
I'm using IE 10.
Is there a way to return all decimals in IE?