...

/

Numeric Data Types and Notations

Numeric Data Types and Notations

Learn about numeric data types and notations.

In the last chapter, we learned all about strings. Now it’s time to learn about numbers.

Integers and floats

Numbers can be classified into various types.

Numbers can be integers, which are whole numbers, such as 33, 4-4, or 00.

Press + to interact
Integers
Integers

Numbers can also be floating-point numbers–often referred to as just reals, decimals, or floats. These include all numbers that have fractional or decimal parts, such as ...