Duplicate:
- Why do I see a double variable initialized to some value like 21.4 as 21.399999618530273?
- Is JavaScript’s math broken?
- many, many other questions, for every language and platform, all with the same answer.
trace( ">> " + (399.6-(Math.floor(399.6))) );
prints out
>> 0.6000000000000227
why?