[Documentation] Behaviour of Trunc and Round with out-of-range values
Summary
According to the documentatino over at, for example https://www.freepascal.org/docs-html/rtl/system/trunc.html, it says "Errors: None." for the Trunc
and Round
functions.
However, it is not specified what happens if these functions are given the following inputs:
- Numbers greater than 2^63 - 1 and less than -2^63 (integer overflow conditions).
- Positive and negative infinity (would these fall under the same overflow conditions?)
- NaN
I presume an exception occurs in these cases, but these should be clearly explained.