[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: faster integer arithmetics & arbitrary precision floating number
From:       Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date:       2004-01-13 9:33:41
Message-ID: 4003BC06.4010203 () wanadoo ! fr
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic