Jump to content

Integer overflow: Difference between revisions

m
Line 245:
Arturo has unlimited-precision integers, without the possibility of an overflow, all with the same <code>:integer</code> type.
 
<lang rebol>max32bitbig32bit: 21474836472147483646
big64bit: 9223372036854775808
max64bit: 9223372036854775807
 
print type max32bitbig32bit
print type max64bitbig64bit
 
print max32bitbig32bit + 1
print max64bitbig64bit + 1
 
print max32bitbig32bit * 2
print max64bitbig64bit * 2</lang>
 
{{out}}
Line 261:
<pre>:integer
:integer
2147483647
2147483648
9223372036854775809
9223372036854775808
4294967292
4294967294
1844674407370955161418446744073709551616</pre>
 
=={{header|AutoHotkey}}==
1,532

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.