From: Ruby Newbee Date: 2009-11-29T20:34:14+09:00 Subject: Re: Just found a round problem Thanks all~ 2009/11/29 Steve Wilhelm : > Florian Gilcher wrote: > >> On Nov 29, 2009, at 12:06 AM, Ruby Newbee wrote: >> >>> irb(main):026:0> 10.499999999999999.round >>> => 10 >>> irb(main):027:0> 10.4999999999999999.round >>> => 11 >>> >>> >>> Does this happen due to the float problem in any languages including >>> ruby? >>> Thanks. >> >> >> Thats IEEE 754 float behaviour, yes. python behaves exactly the same. >> >> > > And PHP 5 as well. >