Integer overflow: Difference between revisions

Content added Content deleted
m (→‎{{header|Sidef}}: Fix link: Perl 6 --> Raku)
Line 2,135: Line 2,135:
0
0
</pre>
</pre>

=={{header|Standard ML}}==
PolyML
<lang Standard ML>~(~9223372036854775807-1) ;
poly: : error: Overflow exception raised while converting ~9223372036854775807 to int
Int.maxInt ;
val it = SOME 4611686018427387903: int option
~(~4611686018427387903 - 1);
Exception- Overflow raised
(~4611686018427387903 - 1) div ~1;
Exception- Overflow raised
2147483648 * 2147483648 ;
Exception- Overflow raised
</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==