Locked lesson.

## About this lesson

Understanding the difference between floats and integers and when to use each.

## Exercise files

Download this lesson’s related exercise files.

Floats and Integers.docx58.6 KB Floats and Integers - Solution.docx

58.7 KB

## Quick reference

### Floats and Integers

When it comes to numbers, choose between floats and integers.

### When to use

Use floats or integers depending on what you're trying to accomplish.

### Instructions

Floats are decimals, like 19.95

Integers are whole numbers, like 12 or 41

### Hints & tips

- Floats use decimals
- Integers are whole numbers

Lesson notes are only available for subscribers.