FANDOM

48 Pages

Floats are a primitive data-type that describe floating point numbers.
Floating point numbers include a mantisse and a exponent of 2. An example:
$1.42 * 2^7$ In ther the 1.42 is the mantisse and the 7 is the exponent.
The range of this numbers are 64-Bit numbers (on a 64-Bit computer) with a maximum exponent of 127 - BIAS where the BIAS is 127 (by convention).
Note that in Python there does not exist floats with double precision (double).

Casting Edit

To convert something into a float, type:

float(your_variable)
Community content is available under CC-BY-SA unless otherwise noted.