6 380 748 730 076 432 694 922 943 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 6 380 748 730 076 432 694 922 943(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
6 380 748 730 076 432 694 922 943(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;
  • 6 380 748 730 076 432 694 922 943 ÷ 2 = 3 190 374 365 038 216 347 461 471 + 1;
  • 3 190 374 365 038 216 347 461 471 ÷ 2 = 1 595 187 182 519 108 173 730 735 + 1;
  • 1 595 187 182 519 108 173 730 735 ÷ 2 = 797 593 591 259 554 086 865 367 + 1;
  • 797 593 591 259 554 086 865 367 ÷ 2 = 398 796 795 629 777 043 432 683 + 1;
  • 398 796 795 629 777 043 432 683 ÷ 2 = 199 398 397 814 888 521 716 341 + 1;
  • 199 398 397 814 888 521 716 341 ÷ 2 = 99 699 198 907 444 260 858 170 + 1;
  • 99 699 198 907 444 260 858 170 ÷ 2 = 49 849 599 453 722 130 429 085 + 0;
  • 49 849 599 453 722 130 429 085 ÷ 2 = 24 924 799 726 861 065 214 542 + 1;
  • 24 924 799 726 861 065 214 542 ÷ 2 = 12 462 399 863 430 532 607 271 + 0;
  • 12 462 399 863 430 532 607 271 ÷ 2 = 6 231 199 931 715 266 303 635 + 1;
  • 6 231 199 931 715 266 303 635 ÷ 2 = 3 115 599 965 857 633 151 817 + 1;
  • 3 115 599 965 857 633 151 817 ÷ 2 = 1 557 799 982 928 816 575 908 + 1;
  • 1 557 799 982 928 816 575 908 ÷ 2 = 778 899 991 464 408 287 954 + 0;
  • 778 899 991 464 408 287 954 ÷ 2 = 389 449 995 732 204 143 977 + 0;
  • 389 449 995 732 204 143 977 ÷ 2 = 194 724 997 866 102 071 988 + 1;
  • 194 724 997 866 102 071 988 ÷ 2 = 97 362 498 933 051 035 994 + 0;
  • 97 362 498 933 051 035 994 ÷ 2 = 48 681 249 466 525 517 997 + 0;
  • 48 681 249 466 525 517 997 ÷ 2 = 24 340 624 733 262 758 998 + 1;
  • 24 340 624 733 262 758 998 ÷ 2 = 12 170 312 366 631 379 499 + 0;
  • 12 170 312 366 631 379 499 ÷ 2 = 6 085 156 183 315 689 749 + 1;
  • 6 085 156 183 315 689 749 ÷ 2 = 3 042 578 091 657 844 874 + 1;
  • 3 042 578 091 657 844 874 ÷ 2 = 1 521 289 045 828 922 437 + 0;
  • 1 521 289 045 828 922 437 ÷ 2 = 760 644 522 914 461 218 + 1;
  • 760 644 522 914 461 218 ÷ 2 = 380 322 261 457 230 609 + 0;
  • 380 322 261 457 230 609 ÷ 2 = 190 161 130 728 615 304 + 1;
  • 190 161 130 728 615 304 ÷ 2 = 95 080 565 364 307 652 + 0;
  • 95 080 565 364 307 652 ÷ 2 = 47 540 282 682 153 826 + 0;
  • 47 540 282 682 153 826 ÷ 2 = 23 770 141 341 076 913 + 0;
  • 23 770 141 341 076 913 ÷ 2 = 11 885 070 670 538 456 + 1;
  • 11 885 070 670 538 456 ÷ 2 = 5 942 535 335 269 228 + 0;
  • 5 942 535 335 269 228 ÷ 2 = 2 971 267 667 634 614 + 0;
  • 2 971 267 667 634 614 ÷ 2 = 1 485 633 833 817 307 + 0;
  • 1 485 633 833 817 307 ÷ 2 = 742 816 916 908 653 + 1;
  • 742 816 916 908 653 ÷ 2 = 371 408 458 454 326 + 1;
  • 371 408 458 454 326 ÷ 2 = 185 704 229 227 163 + 0;
  • 185 704 229 227 163 ÷ 2 = 92 852 114 613 581 + 1;
  • 92 852 114 613 581 ÷ 2 = 46 426 057 306 790 + 1;
  • 46 426 057 306 790 ÷ 2 = 23 213 028 653 395 + 0;
  • 23 213 028 653 395 ÷ 2 = 11 606 514 326 697 + 1;
  • 11 606 514 326 697 ÷ 2 = 5 803 257 163 348 + 1;
  • 5 803 257 163 348 ÷ 2 = 2 901 628 581 674 + 0;
  • 2 901 628 581 674 ÷ 2 = 1 450 814 290 837 + 0;
  • 1 450 814 290 837 ÷ 2 = 725 407 145 418 + 1;
  • 725 407 145 418 ÷ 2 = 362 703 572 709 + 0;
  • 362 703 572 709 ÷ 2 = 181 351 786 354 + 1;
  • 181 351 786 354 ÷ 2 = 90 675 893 177 + 0;
  • 90 675 893 177 ÷ 2 = 45 337 946 588 + 1;
  • 45 337 946 588 ÷ 2 = 22 668 973 294 + 0;
  • 22 668 973 294 ÷ 2 = 11 334 486 647 + 0;
  • 11 334 486 647 ÷ 2 = 5 667 243 323 + 1;
  • 5 667 243 323 ÷ 2 = 2 833 621 661 + 1;
  • 2 833 621 661 ÷ 2 = 1 416 810 830 + 1;
  • 1 416 810 830 ÷ 2 = 708 405 415 + 0;
  • 708 405 415 ÷ 2 = 354 202 707 + 1;
  • 354 202 707 ÷ 2 = 177 101 353 + 1;
  • 177 101 353 ÷ 2 = 88 550 676 + 1;
  • 88 550 676 ÷ 2 = 44 275 338 + 0;
  • 44 275 338 ÷ 2 = 22 137 669 + 0;
  • 22 137 669 ÷ 2 = 11 068 834 + 1;
  • 11 068 834 ÷ 2 = 5 534 417 + 0;
  • 5 534 417 ÷ 2 = 2 767 208 + 1;
  • 2 767 208 ÷ 2 = 1 383 604 + 0;
  • 1 383 604 ÷ 2 = 691 802 + 0;
  • 691 802 ÷ 2 = 345 901 + 0;
  • 345 901 ÷ 2 = 172 950 + 1;
  • 172 950 ÷ 2 = 86 475 + 0;
  • 86 475 ÷ 2 = 43 237 + 1;
  • 43 237 ÷ 2 = 21 618 + 1;
  • 21 618 ÷ 2 = 10 809 + 0;
  • 10 809 ÷ 2 = 5 404 + 1;
  • 5 404 ÷ 2 = 2 702 + 0;
  • 2 702 ÷ 2 = 1 351 + 0;
  • 1 351 ÷ 2 = 675 + 1;
  • 675 ÷ 2 = 337 + 1;
  • 337 ÷ 2 = 168 + 1;
  • 168 ÷ 2 = 84 + 0;
  • 84 ÷ 2 = 42 + 0;
  • 42 ÷ 2 = 21 + 0;
  • 21 ÷ 2 = 10 + 1;
  • 10 ÷ 2 = 5 + 0;
  • 5 ÷ 2 = 2 + 1;
  • 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.

6 380 748 730 076 432 694 922 943(10) =


101 0100 0111 0010 1101 0001 0100 1110 1110 0101 0100 1101 1011 0001 0001 0101 1010 0100 1110 1011 1111(2)


3. Normalize the binary representation of the number.

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


6 380 748 730 076 432 694 922 943(10) =


101 0100 0111 0010 1101 0001 0100 1110 1110 0101 0100 1101 1011 0001 0001 0101 1010 0100 1110 1011 1111(2) =


101 0100 0111 0010 1101 0001 0100 1110 1110 0101 0100 1101 1011 0001 0001 0101 1010 0100 1110 1011 1111(2) × 20 =


1.0101 0001 1100 1011 0100 0101 0011 1011 1001 0101 0011 0110 1100 0100 0101 0110 1001 0011 1010 1111 11(2) × 282


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


Mantissa (not normalized):
1.0101 0001 1100 1011 0100 0101 0011 1011 1001 0101 0011 0110 1100 0100 0101 0110 1001 0011 1010 1111 11


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


82 + 2(8-1) - 1 =


(82 + 127)(10) =


209(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;
  • 209 ÷ 2 = 104 + 1;
  • 104 ÷ 2 = 52 + 0;
  • 52 ÷ 2 = 26 + 0;
  • 26 ÷ 2 = 13 + 0;
  • 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) =


209(10) =


1101 0001(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. 010 1000 1110 0101 1010 0010 100 1110 1110 0101 0100 1101 1011 0001 0001 0101 1010 0100 1110 1011 1111 =


010 1000 1110 0101 1010 0010


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 0001


Mantissa (23 bits) =
010 1000 1110 0101 1010 0010


Decimal number 6 380 748 730 076 432 694 922 943 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 0001 - 010 1000 1110 0101 1010 0010


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