Ticket #521 (closed defect: duplicate)
Float problem with 8.1 and 9.1
| Reported by: | macruby@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

