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 checked arithmetic
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.