in reply to is it a BigInt bug?
The manual for bigint says "Integer constants are created as proper BigInts. Floating point constants are truncated to integer."perl -Mbigint -wle '($x,$y)=split " ","9 2"; $z = $x / $y; print $z' 4.5 perl -Mbigint -wle '($x,$y)=map {$_+= 0} split " ","9 2"; $z = $x / $y +; print $z' 4
It doesn't say anything about interpolating strings into "proper Bigints", so… while this behavior does seem to go against the spirit of DWIM, it's not officially a bug if strings have to be coerced explicitly into numbers in order for them to become bigints.
Or was there some other issue that you were trying to describe?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: is it a BigInt bug?
by rsFalse (Chaplain) on Jul 20, 2014 at 17:54 UTC | |
by Athanasius (Archbishop) on Jul 21, 2014 at 03:51 UTC | |
by rsFalse (Chaplain) on Aug 30, 2014 at 22:17 UTC | |
by Athanasius (Archbishop) on Aug 31, 2014 at 03:49 UTC |