There are three types of numbers in Python: **integer**, **floating numbers,** and **complex numbers**. This article is about “**floating numbers**”. In this article, you will learn what floating number is, how we use floating numbers and some basic arithmetic operations.

**Prerequisites:**

Floating numbers are numbers with at least one decimal character. __15.0__, __1531423.1,__ and __-2452.22__ are floating numbers. The float can also be scientific numbers with an "**e**" to indicate the power of 10.

It is represented as a "**float**". When you assign a value as a floating number, you do not need to specify it as a floating number. Python will understand. If you are doing any arithmetic with an integer and a floating, the result will be floating unless you specify another way. If you are dividing two integers, the result will be a floating number.

Let´s see floating in action.

**Code:**

>>>a = 12.0

>>>print(type(a))

**Output:**

<class 'float'>

Is same with

**Code:**

>>>a = float(12.0)

>>>print(type(a))

**Output:**

<class 'float'>

Let´s do a simple math and multiply two numbers. First number here is an integer and second number is a floating number. What do you think result would be?

**Code:**

>>>a = 5

>>>b = 5.2

>>>print(a*b)

**Output:**

26.0

Let´s see an example with power of 10.

**Code:**

>>>print(5e2)

**Output:**

500.0

Let´s do a division between two integers.

**Code:**

>>>a = 10

>>>b = 2

>>>print(a/b)

**Output:**

500.0