© J. Burton Browning and Bruce Sutherland 2020
J. B. Browning, B. SutherlandC++20 Recipeshttps://doi.org/10.1007/978-1-4842-5713-5_4

4. Working with Numbers

J. Burton Browning1  and Bruce Sutherland2
(1)
Bolivia, NC, USA
(2)
Carnegie, VIC, Australia
 

Computers are designed and built to crunch numbers. The programs you write will take advantage of the computational power of computers to provide experiences to users that are completely dependent on your ability to understand and utilize the tools provided by C++ to manipulate numbers. C++ provides support for different types of numbers. This support includes whole numbers and real numbers as well as multiple different ways of storing and representing these.

The C++ integer types will be used to store whole ...

Get C++20 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.