Skip to content

Glossary: Rust Basics

Remainder

Also written: %

What's left after whole-number division, found with `%`, so `17 % 5` is 2. It's used with `/` to split cents into dollars and cents.

Where the book teaches it

Related terms

Integer division