WeCodeAcademy
❮ int()str() ❯

float()

Converts a value to a decimal number.

Group: Built-in

Syntax

float(x)

Example

Examplepython
Open in editor »

← All of Python Reference