10 001 010 110 101 000 000 000 000 001 433 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 001 010 110 101 000 000 000 000 001 433(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 001 010 110 101 000 000 000 000 001 433(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 001 010 110 101 000 000 000 000 001 433 ÷ 2 = 5 000 505 055 050 500 000 000 000 000 716 + 1;
  • 5 000 505 055 050 500 000 000 000 000 716 ÷ 2 = 2 500 252 527 525 250 000 000 000 000 358 + 0;
  • 2 500 252 527 525 250 000 000 000 000 358 ÷ 2 = 1 250 126 263 762 625 000 000 000 000 179 + 0;
  • 1 250 126 263 762 625 000 000 000 000 179 ÷ 2 = 625 063 131 881 312 500 000 000 000 089 + 1;
  • 625 063 131 881 312 500 000 000 000 089 ÷ 2 = 312 531 565 940 656 250 000 000 000 044 + 1;
  • 312 531 565 940 656 250 000 000 000 044 ÷ 2 = 156 265 782 970 328 125 000 000 000 022 + 0;
  • 156 265 782 970 328 125 000 000 000 022 ÷ 2 = 78 132 891 485 164 062 500 000 000 011 + 0;
  • 78 132 891 485 164 062 500 000 000 011 ÷ 2 = 39 066 445 742 582 031 250 000 000 005 + 1;
  • 39 066 445 742 582 031 250 000 000 005 ÷ 2 = 19 533 222 871 291 015 625 000 000 002 + 1;
  • 19 533 222 871 291 015 625 000 000 002 ÷ 2 = 9 766 611 435 645 507 812 500 000 001 + 0;
  • 9 766 611 435 645 507 812 500 000 001 ÷ 2 = 4 883 305 717 822 753 906 250 000 000 + 1;
  • 4 883 305 717 822 753 906 250 000 000 ÷ 2 = 2 441 652 858 911 376 953 125 000 000 + 0;
  • 2 441 652 858 911 376 953 125 000 000 ÷ 2 = 1 220 826 429 455 688 476 562 500 000 + 0;
  • 1 220 826 429 455 688 476 562 500 000 ÷ 2 = 610 413 214 727 844 238 281 250 000 + 0;
  • 610 413 214 727 844 238 281 250 000 ÷ 2 = 305 206 607 363 922 119 140 625 000 + 0;
  • 305 206 607 363 922 119 140 625 000 ÷ 2 = 152 603 303 681 961 059 570 312 500 + 0;
  • 152 603 303 681 961 059 570 312 500 ÷ 2 = 76 301 651 840 980 529 785 156 250 + 0;
  • 76 301 651 840 980 529 785 156 250 ÷ 2 = 38 150 825 920 490 264 892 578 125 + 0;
  • 38 150 825 920 490 264 892 578 125 ÷ 2 = 19 075 412 960 245 132 446 289 062 + 1;
  • 19 075 412 960 245 132 446 289 062 ÷ 2 = 9 537 706 480 122 566 223 144 531 + 0;
  • 9 537 706 480 122 566 223 144 531 ÷ 2 = 4 768 853 240 061 283 111 572 265 + 1;
  • 4 768 853 240 061 283 111 572 265 ÷ 2 = 2 384 426 620 030 641 555 786 132 + 1;
  • 2 384 426 620 030 641 555 786 132 ÷ 2 = 1 192 213 310 015 320 777 893 066 + 0;
  • 1 192 213 310 015 320 777 893 066 ÷ 2 = 596 106 655 007 660 388 946 533 + 0;
  • 596 106 655 007 660 388 946 533 ÷ 2 = 298 053 327 503 830 194 473 266 + 1;
  • 298 053 327 503 830 194 473 266 ÷ 2 = 149 026 663 751 915 097 236 633 + 0;
  • 149 026 663 751 915 097 236 633 ÷ 2 = 74 513 331 875 957 548 618 316 + 1;
  • 74 513 331 875 957 548 618 316 ÷ 2 = 37 256 665 937 978 774 309 158 + 0;
  • 37 256 665 937 978 774 309 158 ÷ 2 = 18 628 332 968 989 387 154 579 + 0;
  • 18 628 332 968 989 387 154 579 ÷ 2 = 9 314 166 484 494 693 577 289 + 1;
  • 9 314 166 484 494 693 577 289 ÷ 2 = 4 657 083 242 247 346 788 644 + 1;
  • 4 657 083 242 247 346 788 644 ÷ 2 = 2 328 541 621 123 673 394 322 + 0;
  • 2 328 541 621 123 673 394 322 ÷ 2 = 1 164 270 810 561 836 697 161 + 0;
  • 1 164 270 810 561 836 697 161 ÷ 2 = 582 135 405 280 918 348 580 + 1;
  • 582 135 405 280 918 348 580 ÷ 2 = 291 067 702 640 459 174 290 + 0;
  • 291 067 702 640 459 174 290 ÷ 2 = 145 533 851 320 229 587 145 + 0;
  • 145 533 851 320 229 587 145 ÷ 2 = 72 766 925 660 114 793 572 + 1;
  • 72 766 925 660 114 793 572 ÷ 2 = 36 383 462 830 057 396 786 + 0;
  • 36 383 462 830 057 396 786 ÷ 2 = 18 191 731 415 028 698 393 + 0;
  • 18 191 731 415 028 698 393 ÷ 2 = 9 095 865 707 514 349 196 + 1;
  • 9 095 865 707 514 349 196 ÷ 2 = 4 547 932 853 757 174 598 + 0;
  • 4 547 932 853 757 174 598 ÷ 2 = 2 273 966 426 878 587 299 + 0;
  • 2 273 966 426 878 587 299 ÷ 2 = 1 136 983 213 439 293 649 + 1;
  • 1 136 983 213 439 293 649 ÷ 2 = 568 491 606 719 646 824 + 1;
  • 568 491 606 719 646 824 ÷ 2 = 284 245 803 359 823 412 + 0;
  • 284 245 803 359 823 412 ÷ 2 = 142 122 901 679 911 706 + 0;
  • 142 122 901 679 911 706 ÷ 2 = 71 061 450 839 955 853 + 0;
  • 71 061 450 839 955 853 ÷ 2 = 35 530 725 419 977 926 + 1;
  • 35 530 725 419 977 926 ÷ 2 = 17 765 362 709 988 963 + 0;
  • 17 765 362 709 988 963 ÷ 2 = 8 882 681 354 994 481 + 1;
  • 8 882 681 354 994 481 ÷ 2 = 4 441 340 677 497 240 + 1;
  • 4 441 340 677 497 240 ÷ 2 = 2 220 670 338 748 620 + 0;
  • 2 220 670 338 748 620 ÷ 2 = 1 110 335 169 374 310 + 0;
  • 1 110 335 169 374 310 ÷ 2 = 555 167 584 687 155 + 0;
  • 555 167 584 687 155 ÷ 2 = 277 583 792 343 577 + 1;
  • 277 583 792 343 577 ÷ 2 = 138 791 896 171 788 + 1;
  • 138 791 896 171 788 ÷ 2 = 69 395 948 085 894 + 0;
  • 69 395 948 085 894 ÷ 2 = 34 697 974 042 947 + 0;
  • 34 697 974 042 947 ÷ 2 = 17 348 987 021 473 + 1;
  • 17 348 987 021 473 ÷ 2 = 8 674 493 510 736 + 1;
  • 8 674 493 510 736 ÷ 2 = 4 337 246 755 368 + 0;
  • 4 337 246 755 368 ÷ 2 = 2 168 623 377 684 + 0;
  • 2 168 623 377 684 ÷ 2 = 1 084 311 688 842 + 0;
  • 1 084 311 688 842 ÷ 2 = 542 155 844 421 + 0;
  • 542 155 844 421 ÷ 2 = 271 077 922 210 + 1;
  • 271 077 922 210 ÷ 2 = 135 538 961 105 + 0;
  • 135 538 961 105 ÷ 2 = 67 769 480 552 + 1;
  • 67 769 480 552 ÷ 2 = 33 884 740 276 + 0;
  • 33 884 740 276 ÷ 2 = 16 942 370 138 + 0;
  • 16 942 370 138 ÷ 2 = 8 471 185 069 + 0;
  • 8 471 185 069 ÷ 2 = 4 235 592 534 + 1;
  • 4 235 592 534 ÷ 2 = 2 117 796 267 + 0;
  • 2 117 796 267 ÷ 2 = 1 058 898 133 + 1;
  • 1 058 898 133 ÷ 2 = 529 449 066 + 1;
  • 529 449 066 ÷ 2 = 264 724 533 + 0;
  • 264 724 533 ÷ 2 = 132 362 266 + 1;
  • 132 362 266 ÷ 2 = 66 181 133 + 0;
  • 66 181 133 ÷ 2 = 33 090 566 + 1;
  • 33 090 566 ÷ 2 = 16 545 283 + 0;
  • 16 545 283 ÷ 2 = 8 272 641 + 1;
  • 8 272 641 ÷ 2 = 4 136 320 + 1;
  • 4 136 320 ÷ 2 = 2 068 160 + 0;
  • 2 068 160 ÷ 2 = 1 034 080 + 0;
  • 1 034 080 ÷ 2 = 517 040 + 0;
  • 517 040 ÷ 2 = 258 520 + 0;
  • 258 520 ÷ 2 = 129 260 + 0;
  • 129 260 ÷ 2 = 64 630 + 0;
  • 64 630 ÷ 2 = 32 315 + 0;
  • 32 315 ÷ 2 = 16 157 + 1;
  • 16 157 ÷ 2 = 8 078 + 1;
  • 8 078 ÷ 2 = 4 039 + 0;
  • 4 039 ÷ 2 = 2 019 + 1;
  • 2 019 ÷ 2 = 1 009 + 1;
  • 1 009 ÷ 2 = 504 + 1;
  • 504 ÷ 2 = 252 + 0;
  • 252 ÷ 2 = 126 + 0;
  • 126 ÷ 2 = 63 + 0;
  • 63 ÷ 2 = 31 + 1;
  • 31 ÷ 2 = 15 + 1;
  • 15 ÷ 2 = 7 + 1;
  • 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.

10 001 010 110 101 000 000 000 000 001 433(10) =


111 1110 0011 1011 0000 0001 1010 1011 0100 0101 0000 1100 1100 0110 1000 1100 1001 0010 0110 0101 0011 0100 0000 0101 1001 1001(2)


3. Normalize the binary representation of the number.

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


10 001 010 110 101 000 000 000 000 001 433(10) =


111 1110 0011 1011 0000 0001 1010 1011 0100 0101 0000 1100 1100 0110 1000 1100 1001 0010 0110 0101 0011 0100 0000 0101 1001 1001(2) =


111 1110 0011 1011 0000 0001 1010 1011 0100 0101 0000 1100 1100 0110 1000 1100 1001 0010 0110 0101 0011 0100 0000 0101 1001 1001(2) × 20 =


1.1111 1000 1110 1100 0000 0110 1010 1101 0001 0100 0011 0011 0001 1010 0011 0010 0100 1001 1001 0100 1101 0000 0001 0110 0110 01(2) × 2102


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


Mantissa (not normalized):
1.1111 1000 1110 1100 0000 0110 1010 1101 0001 0100 0011 0011 0001 1010 0011 0010 0100 1001 1001 0100 1101 0000 0001 0110 0110 01


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


102 + 2(8-1) - 1 =


(102 + 127)(10) =


229(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;
  • 229 ÷ 2 = 114 + 1;
  • 114 ÷ 2 = 57 + 0;
  • 57 ÷ 2 = 28 + 1;
  • 28 ÷ 2 = 14 + 0;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 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) =


229(10) =


1110 0101(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. 111 1100 0111 0110 0000 0011 010 1011 0100 0101 0000 1100 1100 0110 1000 1100 1001 0010 0110 0101 0011 0100 0000 0101 1001 1001 =


111 1100 0111 0110 0000 0011


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) =
1110 0101


Mantissa (23 bits) =
111 1100 0111 0110 0000 0011


Decimal number 10 001 010 110 101 000 000 000 000 001 433 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0101 - 111 1100 0111 0110 0000 0011


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