Programming‎ > ‎Data‎ > ‎Data type‎ > ‎

Floating-point

Will it float?

A way for computer to represent real numbers. The standard format is the IEEE 754 and it's the one this page care about. The format data in a number is split into three parts.

sign: Always a single bit. 
exponent
significand

There are three common sizes of numbers.

Single (float): 32 bit.
Double (double): 64 bit.

Special values:
- Zero
- Infinity
- NaN

Reference

Floating-Point Formats Cheatsheet
http://asawicki.info/news_1541_floating-point_formats_cheatsheet.html
Demystifying Floating Point Precision - 2017

Comments