1 101 000 111 001 011 000 000 000 514 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 101 000 111 001 011 000 000 000 514(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
1 101 000 111 001 011 000 000 000 514(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;
  • 1 101 000 111 001 011 000 000 000 514 ÷ 2 = 550 500 055 500 505 500 000 000 257 + 0;
  • 550 500 055 500 505 500 000 000 257 ÷ 2 = 275 250 027 750 252 750 000 000 128 + 1;
  • 275 250 027 750 252 750 000 000 128 ÷ 2 = 137 625 013 875 126 375 000 000 064 + 0;
  • 137 625 013 875 126 375 000 000 064 ÷ 2 = 68 812 506 937 563 187 500 000 032 + 0;
  • 68 812 506 937 563 187 500 000 032 ÷ 2 = 34 406 253 468 781 593 750 000 016 + 0;
  • 34 406 253 468 781 593 750 000 016 ÷ 2 = 17 203 126 734 390 796 875 000 008 + 0;
  • 17 203 126 734 390 796 875 000 008 ÷ 2 = 8 601 563 367 195 398 437 500 004 + 0;
  • 8 601 563 367 195 398 437 500 004 ÷ 2 = 4 300 781 683 597 699 218 750 002 + 0;
  • 4 300 781 683 597 699 218 750 002 ÷ 2 = 2 150 390 841 798 849 609 375 001 + 0;
  • 2 150 390 841 798 849 609 375 001 ÷ 2 = 1 075 195 420 899 424 804 687 500 + 1;
  • 1 075 195 420 899 424 804 687 500 ÷ 2 = 537 597 710 449 712 402 343 750 + 0;
  • 537 597 710 449 712 402 343 750 ÷ 2 = 268 798 855 224 856 201 171 875 + 0;
  • 268 798 855 224 856 201 171 875 ÷ 2 = 134 399 427 612 428 100 585 937 + 1;
  • 134 399 427 612 428 100 585 937 ÷ 2 = 67 199 713 806 214 050 292 968 + 1;
  • 67 199 713 806 214 050 292 968 ÷ 2 = 33 599 856 903 107 025 146 484 + 0;
  • 33 599 856 903 107 025 146 484 ÷ 2 = 16 799 928 451 553 512 573 242 + 0;
  • 16 799 928 451 553 512 573 242 ÷ 2 = 8 399 964 225 776 756 286 621 + 0;
  • 8 399 964 225 776 756 286 621 ÷ 2 = 4 199 982 112 888 378 143 310 + 1;
  • 4 199 982 112 888 378 143 310 ÷ 2 = 2 099 991 056 444 189 071 655 + 0;
  • 2 099 991 056 444 189 071 655 ÷ 2 = 1 049 995 528 222 094 535 827 + 1;
  • 1 049 995 528 222 094 535 827 ÷ 2 = 524 997 764 111 047 267 913 + 1;
  • 524 997 764 111 047 267 913 ÷ 2 = 262 498 882 055 523 633 956 + 1;
  • 262 498 882 055 523 633 956 ÷ 2 = 131 249 441 027 761 816 978 + 0;
  • 131 249 441 027 761 816 978 ÷ 2 = 65 624 720 513 880 908 489 + 0;
  • 65 624 720 513 880 908 489 ÷ 2 = 32 812 360 256 940 454 244 + 1;
  • 32 812 360 256 940 454 244 ÷ 2 = 16 406 180 128 470 227 122 + 0;
  • 16 406 180 128 470 227 122 ÷ 2 = 8 203 090 064 235 113 561 + 0;
  • 8 203 090 064 235 113 561 ÷ 2 = 4 101 545 032 117 556 780 + 1;
  • 4 101 545 032 117 556 780 ÷ 2 = 2 050 772 516 058 778 390 + 0;
  • 2 050 772 516 058 778 390 ÷ 2 = 1 025 386 258 029 389 195 + 0;
  • 1 025 386 258 029 389 195 ÷ 2 = 512 693 129 014 694 597 + 1;
  • 512 693 129 014 694 597 ÷ 2 = 256 346 564 507 347 298 + 1;
  • 256 346 564 507 347 298 ÷ 2 = 128 173 282 253 673 649 + 0;
  • 128 173 282 253 673 649 ÷ 2 = 64 086 641 126 836 824 + 1;
  • 64 086 641 126 836 824 ÷ 2 = 32 043 320 563 418 412 + 0;
  • 32 043 320 563 418 412 ÷ 2 = 16 021 660 281 709 206 + 0;
  • 16 021 660 281 709 206 ÷ 2 = 8 010 830 140 854 603 + 0;
  • 8 010 830 140 854 603 ÷ 2 = 4 005 415 070 427 301 + 1;
  • 4 005 415 070 427 301 ÷ 2 = 2 002 707 535 213 650 + 1;
  • 2 002 707 535 213 650 ÷ 2 = 1 001 353 767 606 825 + 0;
  • 1 001 353 767 606 825 ÷ 2 = 500 676 883 803 412 + 1;
  • 500 676 883 803 412 ÷ 2 = 250 338 441 901 706 + 0;
  • 250 338 441 901 706 ÷ 2 = 125 169 220 950 853 + 0;
  • 125 169 220 950 853 ÷ 2 = 62 584 610 475 426 + 1;
  • 62 584 610 475 426 ÷ 2 = 31 292 305 237 713 + 0;
  • 31 292 305 237 713 ÷ 2 = 15 646 152 618 856 + 1;
  • 15 646 152 618 856 ÷ 2 = 7 823 076 309 428 + 0;
  • 7 823 076 309 428 ÷ 2 = 3 911 538 154 714 + 0;
  • 3 911 538 154 714 ÷ 2 = 1 955 769 077 357 + 0;
  • 1 955 769 077 357 ÷ 2 = 977 884 538 678 + 1;
  • 977 884 538 678 ÷ 2 = 488 942 269 339 + 0;
  • 488 942 269 339 ÷ 2 = 244 471 134 669 + 1;
  • 244 471 134 669 ÷ 2 = 122 235 567 334 + 1;
  • 122 235 567 334 ÷ 2 = 61 117 783 667 + 0;
  • 61 117 783 667 ÷ 2 = 30 558 891 833 + 1;
  • 30 558 891 833 ÷ 2 = 15 279 445 916 + 1;
  • 15 279 445 916 ÷ 2 = 7 639 722 958 + 0;
  • 7 639 722 958 ÷ 2 = 3 819 861 479 + 0;
  • 3 819 861 479 ÷ 2 = 1 909 930 739 + 1;
  • 1 909 930 739 ÷ 2 = 954 965 369 + 1;
  • 954 965 369 ÷ 2 = 477 482 684 + 1;
  • 477 482 684 ÷ 2 = 238 741 342 + 0;
  • 238 741 342 ÷ 2 = 119 370 671 + 0;
  • 119 370 671 ÷ 2 = 59 685 335 + 1;
  • 59 685 335 ÷ 2 = 29 842 667 + 1;
  • 29 842 667 ÷ 2 = 14 921 333 + 1;
  • 14 921 333 ÷ 2 = 7 460 666 + 1;
  • 7 460 666 ÷ 2 = 3 730 333 + 0;
  • 3 730 333 ÷ 2 = 1 865 166 + 1;
  • 1 865 166 ÷ 2 = 932 583 + 0;
  • 932 583 ÷ 2 = 466 291 + 1;
  • 466 291 ÷ 2 = 233 145 + 1;
  • 233 145 ÷ 2 = 116 572 + 1;
  • 116 572 ÷ 2 = 58 286 + 0;
  • 58 286 ÷ 2 = 29 143 + 0;
  • 29 143 ÷ 2 = 14 571 + 1;
  • 14 571 ÷ 2 = 7 285 + 1;
  • 7 285 ÷ 2 = 3 642 + 1;
  • 3 642 ÷ 2 = 1 821 + 0;
  • 1 821 ÷ 2 = 910 + 1;
  • 910 ÷ 2 = 455 + 0;
  • 455 ÷ 2 = 227 + 1;
  • 227 ÷ 2 = 113 + 1;
  • 113 ÷ 2 = 56 + 1;
  • 56 ÷ 2 = 28 + 0;
  • 28 ÷ 2 = 14 + 0;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 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.

1 101 000 111 001 011 000 000 000 514(10) =


11 1000 1110 1011 1001 1101 0111 1001 1100 1101 1010 0010 1001 0110 0010 1100 1001 0011 1010 0011 0010 0000 0010(2)


3. Normalize the binary representation of the number.

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


1 101 000 111 001 011 000 000 000 514(10) =


11 1000 1110 1011 1001 1101 0111 1001 1100 1101 1010 0010 1001 0110 0010 1100 1001 0011 1010 0011 0010 0000 0010(2) =


11 1000 1110 1011 1001 1101 0111 1001 1100 1101 1010 0010 1001 0110 0010 1100 1001 0011 1010 0011 0010 0000 0010(2) × 20 =


1.1100 0111 0101 1100 1110 1011 1100 1110 0110 1101 0001 0100 1011 0001 0110 0100 1001 1101 0001 1001 0000 0001 0(2) × 289


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): 89


Mantissa (not normalized):
1.1100 0111 0101 1100 1110 1011 1100 1110 0110 1101 0001 0100 1011 0001 0110 0100 1001 1101 0001 1001 0000 0001 0


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


89 + 2(8-1) - 1 =


(89 + 127)(10) =


216(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;
  • 216 ÷ 2 = 108 + 0;
  • 108 ÷ 2 = 54 + 0;
  • 54 ÷ 2 = 27 + 0;
  • 27 ÷ 2 = 13 + 1;
  • 13 ÷ 2 = 6 + 1;
  • 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) =


216(10) =


1101 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. 110 0011 1010 1110 0111 0101 11 1001 1100 1101 1010 0010 1001 0110 0010 1100 1001 0011 1010 0011 0010 0000 0010 =


110 0011 1010 1110 0111 0101


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) =
1101 1000


Mantissa (23 bits) =
110 0011 1010 1110 0111 0101


Decimal number 1 101 000 111 001 011 000 000 000 514 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 1000 - 110 0011 1010 1110 0111 0101

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