Home 13: Numbers
Content
Cancel

13: Numbers

We have learned about numbers and variables in a former chapter and in this chapter we will have a closer look at the different types of numbers and how to work with them.

Float or double

When programming in JavaScript you will mostly have to deal with float or double numbers. That is a mathematical representation of decimal numbers and the number type in JavaScript uses a double representation.

Integer

Another important type of numbers you will hear about are integers. That are whole numbers, not a fraction.

This post is licensed under CC BY 4.0 by the author.