Integer overflow: Difference between revisions
Added Arturo implementation
(Replaced the existing program which doesn't actually checked overflow for int32 and uint32 by another one.) |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 240:
1
a68g: runtime error: 1: LONG INT value out of bounds (numerical result out of range) (detected in VOID closed-clause starting at "BEGIN" in line 1).</pre>
=={{header|Arturo}}==
Arturo has unlimited precision integers, without the possibility of an overflow, all with the same <code>:integer</code> type.
<lang rebol>max32bit: 2147483647
max64bit: 9223372036854775807
print type max32bit
print type max64bit
print max32bit + 1
print max64bit + 1
print max32bit * 2
print max64bit * 2</lang>
{{out}}
<pre>:integer
:integer
2147483648
9223372036854775808
4294967294
18446744073709551614</pre>
=={{header|AutoHotkey}}==
|