The Metric System
If you lived in almost any country other than the United States, you'd probably use metric units more than English units. This section is a quick review of how to work within the metric system, just in case it's been a while for you. I think after using it a bit you'll find that the metric system is much easier to work with because it's based on powers of 10.
When you're programming, the computer cannot distinguish between meters and centimeters. It understands only numbers, so it is up to you as the programmer to be consistent with the units of physical quantities in your program. We'll start with the metric system because it's much easier to work with. Your player will never know if you are working with miles or kilometers, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access