[#144] Another implementation of Bignum — "Dmitry Antipov" <dmitry.antipov@...>

Hello Ruby hackers,

15 messages 2002/06/06

RE: Bignum bug

From: "Christoph" <chr_news@...>
Date: 2002-06-13 19:50:19 UTC
List: ruby-core #168

> -----Original Message-----
> From: Yukihiro Matsumoto
... 
> 
> You get the same result from Python too.
> 
>   10L**400 + 10L**400 > 0.0 + 10L**400          # false

Which version are you using? With Python 2.2 (cygwin
distribution) I am getting 

>>> 0.0 + 10L**400
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OverflowError: long int too large to convert to float


...

/Christoph

In This Thread