# New Ticket Created by  Zefram 
# Please include the string:  [perl #130155]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130155 >


> 2e0**-1019
1.78005908680576e-307
> 2e0**-1020
8.90029543402881e-308
> 2.0**-1019
1.78005908680576e-307
> 2.0**-1020
0
> 0.5**1019
1.78005908680576e-307
> 0.5**1020
0
> 1 / (2.0**1019)
1.78005908680576e-307
> 1 / (2.0**1020)
0

The three ways of computing 2**-1020 from Rat values all bogusly underflow
to zero.  As you can see, the exact value is representable in the Num
type, which all of these Rat operations use for their results.

-zefram

Reply via email to