It should be mentioned in the manual that Rationals are checked for overflow #31143
Labels
domain:docs
This change adds or pertains to documentation
domain:rationals
The Rational type and values thereof
good first issue
Indicates a good issue for first-time contributors to Julia
status:help wanted
Indicates that a maintainer wants help on an issue or pull request
I looked in detail at the code for Rationals and it seems that they are in all circumstances checked for
overflow --- actually while reviewing the code I detected one test missing, which indeed allows:
but this should be easily fixable.
I think it is be important to mention in the manual this safety of Rationals (and perhaps also mention the existence of the package
SaferIntegers
).The text was updated successfully, but these errors were encountered: