in reply to Integer overflow question
#bad print 2**59, "\n"; #5.76460752303423e+017 print 2**59+1, "\n"; #5.76460752303423e+017
#good use bigint; print 2**59, "\n"; #576460752303423488 print 2**59+1, "\n"; #576460752303423489
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Integer overflow question
by waswas-fng (Curate) on Jan 03, 2005 at 00:23 UTC | |
|
Re^2: Integer overflow question
by ikegami (Patriarch) on Jan 02, 2005 at 22:56 UTC |