Skip to content

Glossary: C++ Basics

Whole cents

Also written: Money in whole cents

Storing money as a whole number of cents in an `int` so sums are exact, then printing with `/ 100` and `% 100`. A `double` holds most decimals only approximately.

Where the book teaches it

Related terms

doubleintInteger division