0.699 x 100 = 69.89999999999999 ?

Posted by Sirber on Stack Overflow See other posts from Stack Overflow or by Sirber
Published on 2010-06-01T14:05:06Z Indexed on 2010/06/01 14:13 UTC
Read the original article Hit count: 141

I've seen this issue in php and javascript. I have this number: float 0.699

if I do this: 0.699 x 100 = 69.89999999999999

why?

edit

round(0.699 x 10, 2): float 69.90000000000001

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript