[Pharo-project] This is so cool, and we can compute it !

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Jan 27 12:29:42 EST 2012


It could have been a rounding problem, but it's not , the following
digits are 001.
The serie is tailored on purpose, to have a short fraction.

It is based on 12345679/999999999 -> (1/81)
You can also try to evaluate 9801 sqrt in a recent squeak or pharo,
then 998001 sqrt.

Nicolas

2012/1/27 Chris Cunningham <cunningham.cb at gmail.com>:
> On Fri, Jan 27, 2012 at 2:08 AM, Norbert Hartl <norbert at hartl.name> wrote:
>>...
>> I think I've found a bug. Mine ends with
>>
>> ...
>>
>> 990991992993994995996997999000s3000
>>
>> You can see after 997 there is 999. :)
>>
> I suspect it should be ...997998999 and not ...997999000.
> The 'issue' is that ScaledDecimal rounds the the number off that is is printing.
> You can find this in ScaledDecimal>>printOn:
>
> -Chris
>




More information about the Pharo-dev mailing list