Weird calculation in ruby 1.9.3 -
i've upgraded 1 of old rails project 1.8.7 1.9.3, ran following problem:
when i'm doing calculation 188 * 0.01, returns 1.8800000000000001 instead of 1.88, happens number 189 well, other numbers correct, i'm using bigdecimal, precision still messed up. didn't happen in 1.8.7, wondering if else having same problem , came fix. thanks.
Comments
Post a Comment