## About

The term floating point refers to the fact that the number's radix point can float, that is, it can be placed anywhere relative to the significant digits of the number.

They are fractional numbers written with a decimal point, like 1.970

The floating-point representation is the most widely representation of real numbers.

Floating point describes a numeral system for representing numbers that would be too large or too small to be represented as number. See also: wiki/Arbitrary-precision_arithmetic

The value 4.32682E-21F is an example of a float.

## Articles Related

## Decimal point Position

The position of the decimal point is given by the exponent.

Floating-point numbers can have:

- a decimal point anywhere from the first to the last digit
- any number of digits after the decimal point
- no decimal point at all.

## Example

The number 1.25 has:

The number 5 has:

## Computer Implementation

See What is and how are Floating-point stored on a computer?

## Syntax and Properties

Floating-point numbers are made up of four components:

- Digits (normally only significant digit)
- The sign, which is positive or negative.
- The mantissa, which is a single-digit binary number followed by a fractional part.
- The exponent, which tells where the decimal point is located in the number represented.

### Sign

The sign is positive or negative

### Mantissa

The mantissa is a single-digit binary number followed by a fractional part.

For example:

- 1.01 in base-2 notation or 1.25 in decimal notation (base 10) has the mantissa 1 + 0/2 + 1/4,

### Exponent

An exponent may optionally be used following the number to increase the range (for example, 1.777 e-20).

It tells where the decimal_point is located in the number.