© Doug Winnie 2021
D. WinnieEssential Java for AP CompScihttps://doi.org/10.1007/978-1-4842-6183-5_14

14. Abstraction of Numbers

Doug Winnie1  
(1)
Mission Hills, KS, USA
 

When we think about numbers, we think of, well, numbers. Anything that has a digit that could be zero through nine. So, for example, we have a number like 723. This number 723 represents a value, or a count of something. It could be 723 dollars, 723 yards of yarn, or 723 gallons of milk. The number tells you how much of something there is.

But what if I showed you these three numbers? 723, 723, and 723. What if I told you that each of these numbers actually represented different amounts of something? It is totally possible, through the use of different number systems.

Let’s throw away ...

Get Essential Java for AP CompSci: From Programming to Computer Science 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.