Levent Ozturk
Enter
Fixed Point, Floating point, Integer Fixed Point : Sign.Integer .Fraction
Floating Point: Sign.Exponent.Integer.Mantissa(Fraction)

Normalized Floating Point: Sign.Exponent.Mantissa(Fraction)

IEEE754 Floating point standard

Single Precision: 1bit sign-8bit unsigned exponent - 23bit unsigned fraction, exponent bias:127 (=2^0)
Double Precision: 1bit sign-11bit exponent-52bit fraction, exponent bias:1023 (=2^0)

Fixed point binary to floating point Conversion:

Find the left most bit that has the value of '1'.
Mantissa is the digits on the right of the first 1 from the left.
Exp is the number of bits between the decimal point and the first '1' from the left.
If it is an integer (no fraction bits) then exp is the number of bits to the right of the first 1 from the left.Subtract this from the bias. the left most bit is not used but inferred.

Floating point binary to Fixed point Conversion:

The mantissa is shifted accordingly until the exponent becomes 0.

Example:

Fixed Point : 573.48
Floating Point: 573.48 100

Normalized IEEE754 Single Precision Floating Point: 0.57348 103 0_10000010_mantissa(binary)

Normalized IEEE754 Double Precision Floating Point: 0.57348 103 010000000010_mantissa(binary)

Integer: 573 (rounded)

All the material listed and linked at this World Wide Web domain are strictly private property and copyrighted. © Copyright -∞-∞ Levent Ozturk. All rights reserved. Reproduction or use of any material, documents and related graphics and any other material from this World Wide Web server is strictly prohibited. Site Map