MORE INFORMATION ON overflow.adb




The file overflow.adb is a sample source that illustrates an overflow error. The function repeatedly multiplies a number by itself. Due to the limited range of the INTEGER class, the result of the multiplication soon becomes too large for the class, thus, by definition, an overflow error occurs.




Click here for the source code.