1 011 010 010 100 100 000 100 447 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 1 011 010 010 100 100 000 100 447(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 011 010 010 100 100 000 100 447(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 011 010 010 100 100 000 100 447 ÷ 2 = 505 505 005 050 050 000 050 223 + 1;
  • 505 505 005 050 050 000 050 223 ÷ 2 = 252 752 502 525 025 000 025 111 + 1;
  • 252 752 502 525 025 000 025 111 ÷ 2 = 126 376 251 262 512 500 012 555 + 1;
  • 126 376 251 262 512 500 012 555 ÷ 2 = 63 188 125 631 256 250 006 277 + 1;
  • 63 188 125 631 256 250 006 277 ÷ 2 = 31 594 062 815 628 125 003 138 + 1;
  • 31 594 062 815 628 125 003 138 ÷ 2 = 15 797 031 407 814 062 501 569 + 0;
  • 15 797 031 407 814 062 501 569 ÷ 2 = 7 898 515 703 907 031 250 784 + 1;
  • 7 898 515 703 907 031 250 784 ÷ 2 = 3 949 257 851 953 515 625 392 + 0;
  • 3 949 257 851 953 515 625 392 ÷ 2 = 1 974 628 925 976 757 812 696 + 0;
  • 1 974 628 925 976 757 812 696 ÷ 2 = 987 314 462 988 378 906 348 + 0;
  • 987 314 462 988 378 906 348 ÷ 2 = 493 657 231 494 189 453 174 + 0;
  • 493 657 231 494 189 453 174 ÷ 2 = 246 828 615 747 094 726 587 + 0;
  • 246 828 615 747 094 726 587 ÷ 2 = 123 414 307 873 547 363 293 + 1;
  • 123 414 307 873 547 363 293 ÷ 2 = 61 707 153 936 773 681 646 + 1;
  • 61 707 153 936 773 681 646 ÷ 2 = 30 853 576 968 386 840 823 + 0;
  • 30 853 576 968 386 840 823 ÷ 2 = 15 426 788 484 193 420 411 + 1;
  • 15 426 788 484 193 420 411 ÷ 2 = 7 713 394 242 096 710 205 + 1;
  • 7 713 394 242 096 710 205 ÷ 2 = 3 856 697 121 048 355 102 + 1;
  • 3 856 697 121 048 355 102 ÷ 2 = 1 928 348 560 524 177 551 + 0;
  • 1 928 348 560 524 177 551 ÷ 2 = 964 174 280 262 088 775 + 1;
  • 964 174 280 262 088 775 ÷ 2 = 482 087 140 131 044 387 + 1;
  • 482 087 140 131 044 387 ÷ 2 = 241 043 570 065 522 193 + 1;
  • 241 043 570 065 522 193 ÷ 2 = 120 521 785 032 761 096 + 1;
  • 120 521 785 032 761 096 ÷ 2 = 60 260 892 516 380 548 + 0;
  • 60 260 892 516 380 548 ÷ 2 = 30 130 446 258 190 274 + 0;
  • 30 130 446 258 190 274 ÷ 2 = 15 065 223 129 095 137 + 0;
  • 15 065 223 129 095 137 ÷ 2 = 7 532 611 564 547 568 + 1;
  • 7 532 611 564 547 568 ÷ 2 = 3 766 305 782 273 784 + 0;
  • 3 766 305 782 273 784 ÷ 2 = 1 883 152 891 136 892 + 0;
  • 1 883 152 891 136 892 ÷ 2 = 941 576 445 568 446 + 0;
  • 941 576 445 568 446 ÷ 2 = 470 788 222 784 223 + 0;
  • 470 788 222 784 223 ÷ 2 = 235 394 111 392 111 + 1;
  • 235 394 111 392 111 ÷ 2 = 117 697 055 696 055 + 1;
  • 117 697 055 696 055 ÷ 2 = 58 848 527 848 027 + 1;
  • 58 848 527 848 027 ÷ 2 = 29 424 263 924 013 + 1;
  • 29 424 263 924 013 ÷ 2 = 14 712 131 962 006 + 1;
  • 14 712 131 962 006 ÷ 2 = 7 356 065 981 003 + 0;
  • 7 356 065 981 003 ÷ 2 = 3 678 032 990 501 + 1;
  • 3 678 032 990 501 ÷ 2 = 1 839 016 495 250 + 1;
  • 1 839 016 495 250 ÷ 2 = 919 508 247 625 + 0;
  • 919 508 247 625 ÷ 2 = 459 754 123 812 + 1;
  • 459 754 123 812 ÷ 2 = 229 877 061 906 + 0;
  • 229 877 061 906 ÷ 2 = 114 938 530 953 + 0;
  • 114 938 530 953 ÷ 2 = 57 469 265 476 + 1;
  • 57 469 265 476 ÷ 2 = 28 734 632 738 + 0;
  • 28 734 632 738 ÷ 2 = 14 367 316 369 + 0;
  • 14 367 316 369 ÷ 2 = 7 183 658 184 + 1;
  • 7 183 658 184 ÷ 2 = 3 591 829 092 + 0;
  • 3 591 829 092 ÷ 2 = 1 795 914 546 + 0;
  • 1 795 914 546 ÷ 2 = 897 957 273 + 0;
  • 897 957 273 ÷ 2 = 448 978 636 + 1;
  • 448 978 636 ÷ 2 = 224 489 318 + 0;
  • 224 489 318 ÷ 2 = 112 244 659 + 0;
  • 112 244 659 ÷ 2 = 56 122 329 + 1;
  • 56 122 329 ÷ 2 = 28 061 164 + 1;
  • 28 061 164 ÷ 2 = 14 030 582 + 0;
  • 14 030 582 ÷ 2 = 7 015 291 + 0;
  • 7 015 291 ÷ 2 = 3 507 645 + 1;
  • 3 507 645 ÷ 2 = 1 753 822 + 1;
  • 1 753 822 ÷ 2 = 876 911 + 0;
  • 876 911 ÷ 2 = 438 455 + 1;
  • 438 455 ÷ 2 = 219 227 + 1;
  • 219 227 ÷ 2 = 109 613 + 1;
  • 109 613 ÷ 2 = 54 806 + 1;
  • 54 806 ÷ 2 = 27 403 + 0;
  • 27 403 ÷ 2 = 13 701 + 1;
  • 13 701 ÷ 2 = 6 850 + 1;
  • 6 850 ÷ 2 = 3 425 + 0;
  • 3 425 ÷ 2 = 1 712 + 1;
  • 1 712 ÷ 2 = 856 + 0;
  • 856 ÷ 2 = 428 + 0;
  • 428 ÷ 2 = 214 + 0;
  • 214 ÷ 2 = 107 + 0;
  • 107 ÷ 2 = 53 + 1;
  • 53 ÷ 2 = 26 + 1;
  • 26 ÷ 2 = 13 + 0;
  • 13 ÷ 2 = 6 + 1;
  • 6 ÷ 2 = 3 + 0;
  • 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 011 010 010 100 100 000 100 447(10) =


1101 0110 0001 0110 1111 0110 0110 0100 0100 1001 0110 1111 1000 0100 0111 1011 1011 0000 0101 1111(2)


3. Normalize the binary representation of the number.

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


1 011 010 010 100 100 000 100 447(10) =


1101 0110 0001 0110 1111 0110 0110 0100 0100 1001 0110 1111 1000 0100 0111 1011 1011 0000 0101 1111(2) =


1101 0110 0001 0110 1111 0110 0110 0100 0100 1001 0110 1111 1000 0100 0111 1011 1011 0000 0101 1111(2) × 20 =


1.1010 1100 0010 1101 1110 1100 1100 1000 1001 0010 1101 1111 0000 1000 1111 0111 0110 0000 1011 111(2) × 279


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


Mantissa (not normalized):
1.1010 1100 0010 1101 1110 1100 1100 1000 1001 0010 1101 1111 0000 1000 1111 0111 0110 0000 1011 111


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


79 + 2(8-1) - 1 =


(79 + 127)(10) =


206(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;
  • 206 ÷ 2 = 103 + 0;
  • 103 ÷ 2 = 51 + 1;
  • 51 ÷ 2 = 25 + 1;
  • 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) =


206(10) =


1100 1110(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. 101 0110 0001 0110 1111 0110 0110 0100 0100 1001 0110 1111 1000 0100 0111 1011 1011 0000 0101 1111 =


101 0110 0001 0110 1111 0110


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 1110


Mantissa (23 bits) =
101 0110 0001 0110 1111 0110


Decimal number 1 011 010 010 100 100 000 100 447 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1100 1110 - 101 0110 0001 0110 1111 0110


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