I have a field of type,
t.decimal "startp", :precision => 4, :scale => 1
which is of course, 13.2, 44.5, 123.9, and so on.
Once in a while, some of the values, which are either already stored in
DB or newly created, become something like,
9.80000000000000001 or 65.40000000000000000001
which was supposed to be 9.8 and 65.4 respectively (I did not count the
number of zeros precisely).
It does not happen all the time, it just does once in a while, and I am
not sure what’s causing it.
Could anyone guess the cause of this issue?