...
/Detecting Overflow and Truncation in Integers
Detecting Overflow and Truncation in Integers
This lesson explains how overflow and truncation can be detected and prevented.
We'll cover the following...
Detecting overflow #
Although detecting overflow uses functions, if conditions and ref parameters, which we have not covered yet, it should be mentioned here that the core.checkedint
module contains arithmetic functions that detect overflow. Instead of operators like +
and -
...
Access this course and 1400+ top-rated courses and projects.