A fixed-point number simply means that there is a fixed number of digits after the decimal point. A floating point number allows a different number of digits after the decimal point.
For example, if you have a way to store numbers that require exactly four digits after the decimal point, then this is a fixed point. Without this restriction, it is a floating point.
Often, when a fixed point is used, the programmer actually uses an integer, and then assumes that some digits are behind the decimal point. For example, I could save two digits of accuracy, so a value of 100 means that it actually means 1.00, 101 means 1.01, 12345 means 123.45, etc.
Floating point numbers are a more general purpose, as they can represent very small or very large numbers in the same way, but there is little punishment for having extra storage for the place where the decimal point is.
Vaughn Cato Sep 23 2018-11-11T00: 00Z
source share