From: MonkeeSage Date: 2007-11-27T11:55:00+09:00 Subject: Re: Bizarre Floating point errors in Ruby? Serious bug? On Nov 26, 8:19 pm, space.ship.travel...@gmail.com wrote: > I understand this is not a problem for just Ruby, but in this case the > Ruby behaviour is not as obvious as Python. I am going to guess that > it is IRB doing the formatting, so it may be something that can be > changed in IRB. Float#to_s is doing the formatting. If you want it like python, do it like this: class Float def to_s "%.12f" % self end end (-140.14 * 100) # => -14013.999999999998 Regards, Jordan