Floating Point and Fixed Point Conversion Calculator

Convert Floating Point to Fixed Point and Vice Versa





Formulas

To convert between floating point and fixed point numbers:

\[ \text{Floating Point Number} = \frac{\text{Fixed Point Number}}{2^Q} \]

\[ \text{Fixed Point Number} = \text{Floating Point Number} \times 2^Q \]

Where:

What is Fixed Point and Floating Point Conversion?

Fixed point and floating point conversions are used to transform numbers between fixed-point representation, which is often used in embedded systems for efficiency, and floating-point representation, which is used for a wider range of values and more precision.

Example Calculation

Let's assume the following values:

Using the formula:

\[ \text{Fixed Point Number} = 3.14 \times 2^4 = 3.14 \times 16 = 50.24 \]

The fixed point number is 50.24.