Startlingly, the standard arithmetic operators in Rust can give us the wrong answers—and that can be fatal. To avoid getting your bits chopped off, use checked arithmetic instead.
All tagged saturating_add
Startlingly, the standard arithmetic operators in Rust can give us the wrong answers—and that can be fatal. To avoid getting your bits chopped off, use checked arithmetic instead.