I’m totally new to jRuby, but i found a really weird thing while
testing some of my apps.
In jirb:
irb(main):001:0> (2…10).map { |x| [ 10.1*x, x]}
=> [[20.2, 2], [30.299999999999997, 3], [40.4, 4], [50.5, 5],
[60.599999999999994, 6], [70.7, 7], [80.8, 8], [90.89999999999999, 9],
[101.0, 10]]
In normal irb it works normally, returning
[[20.2, 2], [30.3, 3], [40.4, 4], [50.5, 5], [60.6, 6], [70.7, 7],
[80.8, 8], [90.9, 9], [101.0, 10]]
Is this a known issue, is there a way to fix it, and am I bound to
find such stuff or was this one exceptional? =)
PS: I’m on OS X/10.4.10, jruby-1.0.1.
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email