Rails 3.1.3 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? soichi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.