in reply to Re^7: use64bitint in building Perl
in thread use64bitint in building Perl
In this instance, the workaround is to 'use integer':$ perl -MDevel::Peek -le 'Dump(17 + (2 ** 56))' SV = NV(0x10450940) at 0x10410fd0 REFCNT = 1 FLAGS = (PADBUSY,PADTMP,NOK,READONLY,pNOK) NV = 7.2057594037928e+16
Just a little trap for the unwary.$ perl -Minteger -MDevel::Peek -le 'Dump(17 + (2 ** 56))' SV = IV(0x10429358) at 0x10410fdc REFCNT = 1 FLAGS = (PADBUSY,PADTMP,IOK,READONLY,pIOK) IV = 72057594037927953
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: use64bitint in building Perl
by ikegami (Patriarch) on Dec 30, 2008 at 02:29 UTC | |
by syphilis (Archbishop) on Dec 30, 2008 at 03:11 UTC | |
|
Re^9: use64bitint in building Perl
by tilly (Archbishop) on Dec 30, 2008 at 02:22 UTC | |
|
Re^9: use64bitint in building Perl
by ikegami (Patriarch) on Dec 30, 2008 at 02:31 UTC |