Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:
printf( "%s\n", 2810337464 ); ## prints 2810337464 printf( "%d\n", 2810337464 ); ## prints -1484629832
Using ActiveState Perl 5.10 on Windows XP.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why does printf() do this to big numbers?
by Anonymous Monk on Mar 17, 2010 at 06:13 UTC | |
Re: Why does printf() do this to big numbers?
by fullermd (Priest) on Mar 17, 2010 at 06:31 UTC | |
by almut (Canon) on Mar 17, 2010 at 09:26 UTC | |
by fullermd (Priest) on Mar 18, 2010 at 00:25 UTC | |
by Anonymous Monk on Mar 18, 2010 at 05:01 UTC | |
Re: Why does printf() do this to big numbers?
by ikegami (Patriarch) on Mar 17, 2010 at 16:06 UTC | |
Re: Why does printf() do this to big numbers?
by ssandv (Hermit) on Mar 17, 2010 at 18:38 UTC |
Back to
Seekers of Perl Wisdom