S
Steven D. Arnold
[ 03:23 PM (5) omega:thoth ~ ] > jirb
irb(main):001:0> 0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1
=> 0.9999999999999999
[ 03:33 PM (8) omega:thoth ~ ] > irb=> 1.0
Disappointing that JRuby does not handle floating point numbers (a) in
the the same way as CRuby and (b) not as accurately. Is the cost of
implementing CRuby's behavior prohibitively high on the JVM, is there
a fix planned in the future? How would JRuby users recommend handling
currency on that platform?
steven
irb(main):001:0> 0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1
=> 0.9999999999999999
[ 03:33 PM (8) omega:thoth ~ ] > irb=> 1.0
Disappointing that JRuby does not handle floating point numbers (a) in
the the same way as CRuby and (b) not as accurately. Is the cost of
implementing CRuby's behavior prohibitively high on the JVM, is there
a fix planned in the future? How would JRuby users recommend handling
currency on that platform?
steven