recentpopularlog in

wjy : ieee754   3

0.30000000000000004 - Floating Point Math
Floating Point Math Your language isn't broken, it's doing floating point math. Computers can only natively store integers, so they need some way of representing decimal numbers. This representation comes with some degree of inaccuracy. That's why, more often than not, .1 + .2 != .3.
programming  floatingpoint  math  ieee754 
november 2015 by wjy

Copy this bookmark:

to read