num-integer
num-integer copied to clipboard
Add checked_* for div and mod functions
It's very easy to implement the check wrong, most people only check if denominator is 0, but not i32::MIN / -1
.
It's very easy to implement the check wrong, most people only check if denominator is 0, but not i32::MIN / -1
.