Main content

## Computers and the Internet

# Decimal system refresher

AP.CSP:

DAT‑1 (EU)

, DAT‑1.C (LO)

, DAT‑1.C.1 (EK)

, DAT‑1.C.3 (EK)

Review how the decimal number system works before diving into the binary number system. The decimal number system and binary number system work the same way; the only difference is what each digit represents (0-9 versus 0/1). Created by Pamela Fox.

## Want to join the conversation?

- The decimal system works well for rational numbers, but what about irrational numbers like Pi? Is there a way to show these numbers in the decimal system? Or, is the decimal system inherently limited to representing certain kinds of numbers (e.g., rational numbers)?(5 votes)
- The decimal system cannot fully express irrational numbers as all irrational numbers will require an infinite number of digits to be completely written out. The decimal system can only write out rational approximations for irrational numbers by rounding after a certain number of decimal places.(6 votes)

- what about irrational numbers like Pi?(1 vote)
- This is an excellent point. Irrational numbers have infinite representations, so they can only be approximated by finite representations in computers.

so Pi would be truncated to something like 3.1415 instead of 3.14159265...

Hope this helps(5 votes)

- What's the difference? You don't know how much of it would happen? I am not sure if I am not sure what you're going for? If you're going into this game then you can get a lot better we have is the best thing that can get(1 vote)
- what about irrational numbers?(1 vote)
- dadadadD ADw adAd AAD(0 votes)
- u are a really smart man(0 votes)

## Video transcript

- [Instructor] Let's
star with the refresher of the decimal system. Since understanding decimal will help us to understand binary. Consider this number 234. We often say that the
four is in the ones place. The three is in the tens place. And the two is in the hundreds places. That makes this number equal to two times a 100, plus three times 10, plus four times one. All equal 234. Now we can also say that this ones place is 10 raised to the power of zero. The tens place is 10
raised to the power of one. And the hundreds place is 10
raised to the power of two. If we're going to add another place here, this would be a 1,000 and
that would be the same as 10 raised to the power of three. Each place represents a power of 10. And that's why this is the decimal system from the Latin for 10. To figure out what
number we're looking at, we just look at the digit
that's in that place and we multiply it times its place. So a one here would be one
times a 1,000, plus 234. And that's the decimal system.