[MacRuby-devel] [MacRuby] #521: Float problem with 8.1 and 9.1
MacRuby
ruby-noreply at macosforge.org
Thu Dec 24 08:00:07 PST 2009
#521: Float problem with 8.1 and 9.1
------------------------------------+---------------------------------------
Reporter: macruby@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
------------------------------------+---------------------------------------
MacRuby 0.5b2 seems to have a problem with the floats 8.1 and 9.1. Here is
what 'macirb' does:
irb(main):005:0> 9.1
=> 9.09999999999999
irb(main):006:0> 8.1
=> 8.09999999999999
I get the same results from 'macruby'. The strange thing is that if I do
the following:
irb(main):007:0> 9.1 + 1
=> 10.1
irb(main):008:0> 10.0 - 0.9
=> 9.09999999999999
very strange - AYAL
--
Ticket URL: <http://www.macruby.org/trac/ticket/521>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list