David Garamond wrote: > 2. Doing arbitrary integer math is already very convenient in Ruby > because of its automatic conversion. But Ruby still doesn't do > seamless conversion to arbitrary floating point numbers: > > $ irb > irb(main):001:0> 0.00000000000000001 > => 1.0e-17 > irb(main):002:0> 0.000000000000000001 > => 0.0 > > Any chance Ruby will do this in the future? Or perhaps in the nearer > future, include an arbitrary floating number package in its > distribution (is there any? GMP is GPL so it potentially a problem > license-wise). > btw, just saw a mention of this today: isn't maybe ext/bigdecimal what you want? shipped with ruby-1.8.0. emmanuel