Databases

FLOAT (floating point)

A number type that stores decimals in binary as an approximation. It's fast and small, but some decimals, like 0.1, aren't exact.

Example

With FLOAT, 0.1 + 0.2 gives 0.30000000000000004. Fine for a temperature (23.5 °C), not for money.

Test yourself: FLOAT (floating point)

How numbers are stored

A float works like scientific notation, but in base ___.

Lessons that use it

More databases terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.