10 111 009 999 999 999 999 614 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 111 009 999 999 999 999 614(10) to 32 bit single precision IEEE 754 binary floating point representation standard (1 bit for sign, 8 bits for exponent, 23 bits for mantissa)

What are the steps to convert decimal number
10 111 009 999 999 999 999 614(10) to 32 bit single precision IEEE 754 binary floating point representation (1 bit for sign, 8 bits for exponent, 23 bits for mantissa)

1. Divide the number repeatedly by 2.

Keep track of each remainder.

We stop when we get a quotient that is equal to zero.


  • division = quotient + remainder;
  • 10 111 009 999 999 999 999 614 ÷ 2 = 5 055 504 999 999 999 999 807 + 0;
  • 5 055 504 999 999 999 999 807 ÷ 2 = 2 527 752 499 999 999 999 903 + 1;
  • 2 527 752 499 999 999 999 903 ÷ 2 = 1 263 876 249 999 999 999 951 + 1;
  • 1 263 876 249 999 999 999 951 ÷ 2 = 631 938 124 999 999 999 975 + 1;
  • 631 938 124 999 999 999 975 ÷ 2 = 315 969 062 499 999 999 987 + 1;
  • 315 969 062 499 999 999 987 ÷ 2 = 157 984 531 249 999 999 993 + 1;
  • 157 984 531 249 999 999 993 ÷ 2 = 78 992 265 624 999 999 996 + 1;
  • 78 992 265 624 999 999 996 ÷ 2 = 39 496 132 812 499 999 998 + 0;
  • 39 496 132 812 499 999 998 ÷ 2 = 19 748 066 406 249 999 999 + 0;
  • 19 748 066 406 249 999 999 ÷ 2 = 9 874 033 203 124 999 999 + 1;
  • 9 874 033 203 124 999 999 ÷ 2 = 4 937 016 601 562 499 999 + 1;
  • 4 937 016 601 562 499 999 ÷ 2 = 2 468 508 300 781 249 999 + 1;
  • 2 468 508 300 781 249 999 ÷ 2 = 1 234 254 150 390 624 999 + 1;
  • 1 234 254 150 390 624 999 ÷ 2 = 617 127 075 195 312 499 + 1;
  • 617 127 075 195 312 499 ÷ 2 = 308 563 537 597 656 249 + 1;
  • 308 563 537 597 656 249 ÷ 2 = 154 281 768 798 828 124 + 1;
  • 154 281 768 798 828 124 ÷ 2 = 77 140 884 399 414 062 + 0;
  • 77 140 884 399 414 062 ÷ 2 = 38 570 442 199 707 031 + 0;
  • 38 570 442 199 707 031 ÷ 2 = 19 285 221 099 853 515 + 1;
  • 19 285 221 099 853 515 ÷ 2 = 9 642 610 549 926 757 + 1;
  • 9 642 610 549 926 757 ÷ 2 = 4 821 305 274 963 378 + 1;
  • 4 821 305 274 963 378 ÷ 2 = 2 410 652 637 481 689 + 0;
  • 2 410 652 637 481 689 ÷ 2 = 1 205 326 318 740 844 + 1;
  • 1 205 326 318 740 844 ÷ 2 = 602 663 159 370 422 + 0;
  • 602 663 159 370 422 ÷ 2 = 301 331 579 685 211 + 0;
  • 301 331 579 685 211 ÷ 2 = 150 665 789 842 605 + 1;
  • 150 665 789 842 605 ÷ 2 = 75 332 894 921 302 + 1;
  • 75 332 894 921 302 ÷ 2 = 37 666 447 460 651 + 0;
  • 37 666 447 460 651 ÷ 2 = 18 833 223 730 325 + 1;
  • 18 833 223 730 325 ÷ 2 = 9 416 611 865 162 + 1;
  • 9 416 611 865 162 ÷ 2 = 4 708 305 932 581 + 0;
  • 4 708 305 932 581 ÷ 2 = 2 354 152 966 290 + 1;
  • 2 354 152 966 290 ÷ 2 = 1 177 076 483 145 + 0;
  • 1 177 076 483 145 ÷ 2 = 588 538 241 572 + 1;
  • 588 538 241 572 ÷ 2 = 294 269 120 786 + 0;
  • 294 269 120 786 ÷ 2 = 147 134 560 393 + 0;
  • 147 134 560 393 ÷ 2 = 73 567 280 196 + 1;
  • 73 567 280 196 ÷ 2 = 36 783 640 098 + 0;
  • 36 783 640 098 ÷ 2 = 18 391 820 049 + 0;
  • 18 391 820 049 ÷ 2 = 9 195 910 024 + 1;
  • 9 195 910 024 ÷ 2 = 4 597 955 012 + 0;
  • 4 597 955 012 ÷ 2 = 2 298 977 506 + 0;
  • 2 298 977 506 ÷ 2 = 1 149 488 753 + 0;
  • 1 149 488 753 ÷ 2 = 574 744 376 + 1;
  • 574 744 376 ÷ 2 = 287 372 188 + 0;
  • 287 372 188 ÷ 2 = 143 686 094 + 0;
  • 143 686 094 ÷ 2 = 71 843 047 + 0;
  • 71 843 047 ÷ 2 = 35 921 523 + 1;
  • 35 921 523 ÷ 2 = 17 960 761 + 1;
  • 17 960 761 ÷ 2 = 8 980 380 + 1;
  • 8 980 380 ÷ 2 = 4 490 190 + 0;
  • 4 490 190 ÷ 2 = 2 245 095 + 0;
  • 2 245 095 ÷ 2 = 1 122 547 + 1;
  • 1 122 547 ÷ 2 = 561 273 + 1;
  • 561 273 ÷ 2 = 280 636 + 1;
  • 280 636 ÷ 2 = 140 318 + 0;
  • 140 318 ÷ 2 = 70 159 + 0;
  • 70 159 ÷ 2 = 35 079 + 1;
  • 35 079 ÷ 2 = 17 539 + 1;
  • 17 539 ÷ 2 = 8 769 + 1;
  • 8 769 ÷ 2 = 4 384 + 1;
  • 4 384 ÷ 2 = 2 192 + 0;
  • 2 192 ÷ 2 = 1 096 + 0;
  • 1 096 ÷ 2 = 548 + 0;
  • 548 ÷ 2 = 274 + 0;
  • 274 ÷ 2 = 137 + 0;
  • 137 ÷ 2 = 68 + 1;
  • 68 ÷ 2 = 34 + 0;
  • 34 ÷ 2 = 17 + 0;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

2. Construct the base 2 representation of the positive number.

Take all the remainders starting from the bottom of the list constructed above.

10 111 009 999 999 999 999 614(10) =


10 0010 0100 0001 1110 0111 0011 1000 1000 1001 0010 1011 0110 0101 1100 1111 1110 0111 1110(2)


3. Normalize the binary representation of the number.

Shift the decimal mark 73 positions to the left, so that only one non zero digit remains to the left of it:


10 111 009 999 999 999 999 614(10) =


10 0010 0100 0001 1110 0111 0011 1000 1000 1001 0010 1011 0110 0101 1100 1111 1110 0111 1110(2) =


10 0010 0100 0001 1110 0111 0011 1000 1000 1001 0010 1011 0110 0101 1100 1111 1110 0111 1110(2) × 20 =


1.0001 0010 0000 1111 0011 1001 1100 0100 0100 1001 0101 1011 0010 1110 0111 1111 0011 1111 0(2) × 273


4. Up to this moment, there are the following elements that would feed into the 32 bit single precision IEEE 754 binary floating point representation:

Sign 0 (a positive number)


Exponent (unadjusted): 73


Mantissa (not normalized):
1.0001 0010 0000 1111 0011 1001 1100 0100 0100 1001 0101 1011 0010 1110 0111 1111 0011 1111 0


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


Exponent (unadjusted) + 2(8-1) - 1 =


73 + 2(8-1) - 1 =


(73 + 127)(10) =


200(10)


6. Convert the adjusted exponent from the decimal (base 10) to 8 bit binary.

Use the same technique of repeatedly dividing by 2:


  • division = quotient + remainder;
  • 200 ÷ 2 = 100 + 0;
  • 100 ÷ 2 = 50 + 0;
  • 50 ÷ 2 = 25 + 0;
  • 25 ÷ 2 = 12 + 1;
  • 12 ÷ 2 = 6 + 0;
  • 6 ÷ 2 = 3 + 0;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

7. Construct the base 2 representation of the adjusted exponent.

Take all the remainders starting from the bottom of the list constructed above.


Exponent (adjusted) =


200(10) =


1100 1000(2)


8. Normalize the mantissa.

a) Remove the leading (the leftmost) bit, since it's allways 1, and the decimal point, if the case.


b) Adjust its length to 23 bits, by removing the excess bits, from the right (if any of the excess bits is set on 1, we are losing precision...).


Mantissa (normalized) =


1. 000 1001 0000 0111 1001 1100 11 1000 1000 1001 0010 1011 0110 0101 1100 1111 1110 0111 1110 =


000 1001 0000 0111 1001 1100


9. The three elements that make up the number's 32 bit single precision IEEE 754 binary floating point representation:

Sign (1 bit) =
0 (a positive number)


Exponent (8 bits) =
1100 1000


Mantissa (23 bits) =
000 1001 0000 0111 1001 1100


Decimal number 10 111 009 999 999 999 999 614 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1100 1000 - 000 1001 0000 0111 1001 1100


How to convert decimal numbers from base ten to 32 bit single precision IEEE 754 binary floating point standard

Follow the steps below to convert a base 10 decimal number to 32 bit single precision IEEE 754 binary floating point:

  • 1. If the number to be converted is negative, start with its the positive version.
  • 2. First convert the integer part. Divide repeatedly by 2 the base ten positive representation of the integer number that is to be converted to binary, until we get a quotient that is equal to zero, keeping track of each remainder.
  • 3. Construct the base 2 representation of the positive integer part of the number, by taking all the remainders of the previous dividing operations, starting from the bottom of the list constructed above. Thus, the last remainder of the divisions becomes the first symbol (the leftmost) of the base two number, while the first remainder becomes the last symbol (the rightmost).
  • 4. Then convert the fractional part. Multiply the number repeatedly by 2, until we get a fractional part that is equal to zero, keeping track of each integer part of the results.
  • 5. Construct the base 2 representation of the fractional part of the number by taking all the integer parts of the previous multiplying operations, starting from the top of the constructed list above (they should appear in the binary representation, from left to right, in the order they have been calculated).
  • 6. Normalize the binary representation of the number, by shifting the decimal point (or if you prefer, the decimal mark) "n" positions either to the left or to the right, so that only one non zero digit remains to the left of the decimal point.
  • 7. Adjust the exponent in 8 bit excess/bias notation and then convert it from decimal (base 10) to 8 bit binary, by using the same technique of repeatedly dividing by 2, as shown above:
    Exponent (adjusted) = Exponent (unadjusted) + 2(8-1) - 1
  • 8. Normalize mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal sign if the case) and adjust its length to 23 bits, either by removing the excess bits from the right (losing precision...) or by adding extra '0' bits to the right.
  • 9. Sign (it takes 1 bit) is either 1 for a negative or 0 for a positive number.

Example: convert the negative number -25.347 from decimal system (base ten) to 32 bit single precision IEEE 754 binary floating point:

  • 1. Start with the positive version of the number:

    |-25.347| = 25.347

  • 2. First convert the integer part, 25. Divide it repeatedly by 2, keeping track of each remainder, until we get a quotient that is equal to zero:
    • division = quotient + remainder;
    • 25 ÷ 2 = 12 + 1;
    • 12 ÷ 2 = 6 + 0;
    • 6 ÷ 2 = 3 + 0;
    • 3 ÷ 2 = 1 + 1;
    • 1 ÷ 2 = 0 + 1;
    • We have encountered a quotient that is ZERO => FULL STOP
  • 3. Construct the base 2 representation of the integer part of the number by taking all the remainders of the previous dividing operations, starting from the bottom of the list constructed above:

    25(10) = 1 1001(2)

  • 4. Then convert the fractional part, 0.347. Multiply repeatedly by 2, keeping track of each integer part of the results, until we get a fractional part that is equal to zero:
    • #) multiplying = integer + fractional part;
    • 1) 0.347 × 2 = 0 + 0.694;
    • 2) 0.694 × 2 = 1 + 0.388;
    • 3) 0.388 × 2 = 0 + 0.776;
    • 4) 0.776 × 2 = 1 + 0.552;
    • 5) 0.552 × 2 = 1 + 0.104;
    • 6) 0.104 × 2 = 0 + 0.208;
    • 7) 0.208 × 2 = 0 + 0.416;
    • 8) 0.416 × 2 = 0 + 0.832;
    • 9) 0.832 × 2 = 1 + 0.664;
    • 10) 0.664 × 2 = 1 + 0.328;
    • 11) 0.328 × 2 = 0 + 0.656;
    • 12) 0.656 × 2 = 1 + 0.312;
    • 13) 0.312 × 2 = 0 + 0.624;
    • 14) 0.624 × 2 = 1 + 0.248;
    • 15) 0.248 × 2 = 0 + 0.496;
    • 16) 0.496 × 2 = 0 + 0.992;
    • 17) 0.992 × 2 = 1 + 0.984;
    • 18) 0.984 × 2 = 1 + 0.968;
    • 19) 0.968 × 2 = 1 + 0.936;
    • 20) 0.936 × 2 = 1 + 0.872;
    • 21) 0.872 × 2 = 1 + 0.744;
    • 22) 0.744 × 2 = 1 + 0.488;
    • 23) 0.488 × 2 = 0 + 0.976;
    • 24) 0.976 × 2 = 1 + 0.952;
    • We didn't get any fractional part that was equal to zero. But we had enough iterations (over Mantissa limit = 23) and at least one integer part that was different from zero => FULL STOP (losing precision...).
  • 5. Construct the base 2 representation of the fractional part of the number, by taking all the integer parts of the previous multiplying operations, starting from the top of the constructed list above:

    0.347(10) = 0.0101 1000 1101 0100 1111 1101(2)

  • 6. Summarizing - the positive number before normalization:

    25.347(10) = 1 1001.0101 1000 1101 0100 1111 1101(2)

  • 7. Normalize the binary representation of the number, shifting the decimal point 4 positions to the left so that only one non-zero digit stays to the left of the decimal point:

    25.347(10) =
    1 1001.0101 1000 1101 0100 1111 1101(2) =
    1 1001.0101 1000 1101 0100 1111 1101(2) × 20 =
    1.1001 0101 1000 1101 0100 1111 1101(2) × 24

  • 8. Up to this moment, there are the following elements that would feed into the 32 bit single precision IEEE 754 binary floating point:

    Sign: 1 (a negative number)

    Exponent (unadjusted): 4

    Mantissa (not-normalized): 1.1001 0101 1000 1101 0100 1111 1101

  • 9. Adjust the exponent in 8 bit excess/bias notation and then convert it from decimal (base 10) to 8 bit binary (base 2), by using the same technique of repeatedly dividing it by 2, as already demonstrated above:

    Exponent (adjusted) = Exponent (unadjusted) + 2(8-1) - 1 = (4 + 127)(10) = 131(10) =
    1000 0011(2)

  • 10. Normalize the mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal point) and adjust its length to 23 bits, by removing the excess bits from the right (losing precision...):

    Mantissa (not-normalized): 1.1001 0101 1000 1101 0100 1111 1101

    Mantissa (normalized): 100 1010 1100 0110 1010 0111

  • Conclusion:

    Sign (1 bit) = 1 (a negative number)

    Exponent (8 bits) = 1000 0011

    Mantissa (23 bits) = 100 1010 1100 0110 1010 0111

  • Number -25.347, converted from the decimal system (base 10) to 32 bit single precision IEEE 754 binary floating point =
    1 - 1000 0011 - 100 1010 1100 0110 1010 0111