Why is it called Floating Point? And what is Fixed Point?
In a floating point value, the radix point "floats around". The value is determined by the significand, and the position of the radix point is determined by the exponent:
sign
0
exponent
significand
This way extremely small and extremely large values can be represented, without sacrificing any significant digits. Put differently: One does not have to include lots of leading or trailing zeroes to indicate the magnitude.
Fixed Point Representation
In some applications the floating point representation is not suitable. For example, some architectures do not have hardware support for floating point arithmetics. In these situations, it's common to use fixed-point arithmetic. A fixed-point value is essentially an integer scaled by an implicit constant factor.
Here's a fixed-point value with scale 10−6.
integer bits
.
fractional bits
Comments
Be the first to comment!