in reply to use bignum and exponentiation
Unfortunately, the "10.0" and "-1.0" are simply being made into Math::BigInt objects with values of 10 and -1, respectively. If they were created as Math::BigFloat objects (as in my next one liner) everything would work fine:D:\>perl -Mbignum -e "print 10.0 ** -1.0" NaN
D:\>perl -Mbignum -e "print 10.1 ** -1.1" 0.07856814306418730376003456559872468142155
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use bignum and exponentiation
by swampyankee (Parson) on Dec 03, 2006 at 02:40 UTC | |
by syphilis (Archbishop) on Dec 03, 2006 at 06:53 UTC | |
by swampyankee (Parson) on Dec 04, 2006 at 02:53 UTC | |
by belg4mit (Prior) on Dec 09, 2006 at 01:51 UTC |