Skip to content

VLSIFacts

Let's Program the Transistors

  • Home
  • DHD
    • Digital Electronics
    • Fault Tolerant System Design
    • TLM
    • Verification
    • Verilog
    • VHDL
    • Xilinx
  • Embedded System
    • 8085 uP
    • 8086 uP
    • 8051 uC
  • VLSI Technology
    • Analog Electronics
    • Memory Devices
    • VLSI Circuits
  • Interview
    • Interview Experience
    • Training Experience
    • Question Bank
  • Notifications
  • QUIZ
  • Community
  • Job Board
  • Contact Us
  • Toggle search form

How to Convert a Decimal Number to a Binary Single-precision Floating Point Number

Posted on March 13, 2023June 19, 2025 By vlsifacts No Comments on How to Convert a Decimal Number to a Binary Single-precision Floating Point Number

In order to convert a decimal number to a binary single-precision floating point number, first of all, we need to convert the decimal number to its binary equivalent (unsigned magnitude form). A proper sign should be added based on the sign of the decimal number. But remember, we should not perform the signed representation. Then we need to follow the steps discussed in single-precision floating point representation article.

To understand the conversion clearly, we will take an example in this article.

Example: Represent 3462.5 in IEEE 754 single-precision floating point format.

Solution: First of all, we will convert the decimal number to its equivalent binary number.

3462.5 = 110110000110.1

We can write, 110110000110.1 = 1.101100001101 x 211

So, the three parts of the floating point number are as below:

Sign (S) = 0, as the number is positive

Extended Exponent (E) = 11+127 = 138

So, the exponent in binary form is 10001010.

Mantissa (F): 101100001101

We will pad additional zeros to the right of the mantissa to make it 23 bits in the final representation.

The complete floating-point number is as below:

Example of Decimal to IEEE 754 single-precision binary floating point number conversion

Previous           Table of Content           Next

Spread the Word

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Related posts:

  1. Floating Point Format
  2. Single-Precision IEEE 754 Representation for Floating Point Numbers
  3. How to Determine the Binary Value from a Single-precision Floating Point Representation
  4. Synopsys – Interview Questions – based on Synthesis and Simulation
Digital Electronics Tags:exponent, floating point number, IEEE 754, mantissa, single precision floating point

Post navigation

Previous Post: How to Determine the Binary Value from a Single-precision Floating Point Representation
Next Post: Esperanto’s ET-SoC-1 Chip Integrates more than 1000 RISC-V Cores for Energy Efficient ML Recommendation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Top Posts & Pages

  • ASCII Code
  • Circuit Design of a 4-bit Binary Counter Using D Flip-flops
  • Difference between $display, $monitor, $write and $strobe in Verilog
  • NAND and NOR gate using CMOS Technology
  • Truth Tables, Characteristic Equations and Excitation Tables of Different Flipflops


 

Copyright © 2025 VLSIFacts.

Powered by PressBook WordPress theme

%d