From: Pete Hodgson Date: 2009-06-06T11:07:15+09:00 Subject: rounding errors? :~$ ruby -e "p ((0.29)*100).to_i" 28 Really?! I know that digital storage of floating point numbers can lead to things like this, but this one seems a little extreme to me. :~$ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] Cheers, Pete -- Posted via http://www.ruby-forum.com/.