65 458 797 077 764 444 631 597 821 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 65 458 797 077 764 444 631 597 821(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
65 458 797 077 764 444 631 597 821(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;
  • 65 458 797 077 764 444 631 597 821 ÷ 2 = 32 729 398 538 882 222 315 798 910 + 1;
  • 32 729 398 538 882 222 315 798 910 ÷ 2 = 16 364 699 269 441 111 157 899 455 + 0;
  • 16 364 699 269 441 111 157 899 455 ÷ 2 = 8 182 349 634 720 555 578 949 727 + 1;
  • 8 182 349 634 720 555 578 949 727 ÷ 2 = 4 091 174 817 360 277 789 474 863 + 1;
  • 4 091 174 817 360 277 789 474 863 ÷ 2 = 2 045 587 408 680 138 894 737 431 + 1;
  • 2 045 587 408 680 138 894 737 431 ÷ 2 = 1 022 793 704 340 069 447 368 715 + 1;
  • 1 022 793 704 340 069 447 368 715 ÷ 2 = 511 396 852 170 034 723 684 357 + 1;
  • 511 396 852 170 034 723 684 357 ÷ 2 = 255 698 426 085 017 361 842 178 + 1;
  • 255 698 426 085 017 361 842 178 ÷ 2 = 127 849 213 042 508 680 921 089 + 0;
  • 127 849 213 042 508 680 921 089 ÷ 2 = 63 924 606 521 254 340 460 544 + 1;
  • 63 924 606 521 254 340 460 544 ÷ 2 = 31 962 303 260 627 170 230 272 + 0;
  • 31 962 303 260 627 170 230 272 ÷ 2 = 15 981 151 630 313 585 115 136 + 0;
  • 15 981 151 630 313 585 115 136 ÷ 2 = 7 990 575 815 156 792 557 568 + 0;
  • 7 990 575 815 156 792 557 568 ÷ 2 = 3 995 287 907 578 396 278 784 + 0;
  • 3 995 287 907 578 396 278 784 ÷ 2 = 1 997 643 953 789 198 139 392 + 0;
  • 1 997 643 953 789 198 139 392 ÷ 2 = 998 821 976 894 599 069 696 + 0;
  • 998 821 976 894 599 069 696 ÷ 2 = 499 410 988 447 299 534 848 + 0;
  • 499 410 988 447 299 534 848 ÷ 2 = 249 705 494 223 649 767 424 + 0;
  • 249 705 494 223 649 767 424 ÷ 2 = 124 852 747 111 824 883 712 + 0;
  • 124 852 747 111 824 883 712 ÷ 2 = 62 426 373 555 912 441 856 + 0;
  • 62 426 373 555 912 441 856 ÷ 2 = 31 213 186 777 956 220 928 + 0;
  • 31 213 186 777 956 220 928 ÷ 2 = 15 606 593 388 978 110 464 + 0;
  • 15 606 593 388 978 110 464 ÷ 2 = 7 803 296 694 489 055 232 + 0;
  • 7 803 296 694 489 055 232 ÷ 2 = 3 901 648 347 244 527 616 + 0;
  • 3 901 648 347 244 527 616 ÷ 2 = 1 950 824 173 622 263 808 + 0;
  • 1 950 824 173 622 263 808 ÷ 2 = 975 412 086 811 131 904 + 0;
  • 975 412 086 811 131 904 ÷ 2 = 487 706 043 405 565 952 + 0;
  • 487 706 043 405 565 952 ÷ 2 = 243 853 021 702 782 976 + 0;
  • 243 853 021 702 782 976 ÷ 2 = 121 926 510 851 391 488 + 0;
  • 121 926 510 851 391 488 ÷ 2 = 60 963 255 425 695 744 + 0;
  • 60 963 255 425 695 744 ÷ 2 = 30 481 627 712 847 872 + 0;
  • 30 481 627 712 847 872 ÷ 2 = 15 240 813 856 423 936 + 0;
  • 15 240 813 856 423 936 ÷ 2 = 7 620 406 928 211 968 + 0;
  • 7 620 406 928 211 968 ÷ 2 = 3 810 203 464 105 984 + 0;
  • 3 810 203 464 105 984 ÷ 2 = 1 905 101 732 052 992 + 0;
  • 1 905 101 732 052 992 ÷ 2 = 952 550 866 026 496 + 0;
  • 952 550 866 026 496 ÷ 2 = 476 275 433 013 248 + 0;
  • 476 275 433 013 248 ÷ 2 = 238 137 716 506 624 + 0;
  • 238 137 716 506 624 ÷ 2 = 119 068 858 253 312 + 0;
  • 119 068 858 253 312 ÷ 2 = 59 534 429 126 656 + 0;
  • 59 534 429 126 656 ÷ 2 = 29 767 214 563 328 + 0;
  • 29 767 214 563 328 ÷ 2 = 14 883 607 281 664 + 0;
  • 14 883 607 281 664 ÷ 2 = 7 441 803 640 832 + 0;
  • 7 441 803 640 832 ÷ 2 = 3 720 901 820 416 + 0;
  • 3 720 901 820 416 ÷ 2 = 1 860 450 910 208 + 0;
  • 1 860 450 910 208 ÷ 2 = 930 225 455 104 + 0;
  • 930 225 455 104 ÷ 2 = 465 112 727 552 + 0;
  • 465 112 727 552 ÷ 2 = 232 556 363 776 + 0;
  • 232 556 363 776 ÷ 2 = 116 278 181 888 + 0;
  • 116 278 181 888 ÷ 2 = 58 139 090 944 + 0;
  • 58 139 090 944 ÷ 2 = 29 069 545 472 + 0;
  • 29 069 545 472 ÷ 2 = 14 534 772 736 + 0;
  • 14 534 772 736 ÷ 2 = 7 267 386 368 + 0;
  • 7 267 386 368 ÷ 2 = 3 633 693 184 + 0;
  • 3 633 693 184 ÷ 2 = 1 816 846 592 + 0;
  • 1 816 846 592 ÷ 2 = 908 423 296 + 0;
  • 908 423 296 ÷ 2 = 454 211 648 + 0;
  • 454 211 648 ÷ 2 = 227 105 824 + 0;
  • 227 105 824 ÷ 2 = 113 552 912 + 0;
  • 113 552 912 ÷ 2 = 56 776 456 + 0;
  • 56 776 456 ÷ 2 = 28 388 228 + 0;
  • 28 388 228 ÷ 2 = 14 194 114 + 0;
  • 14 194 114 ÷ 2 = 7 097 057 + 0;
  • 7 097 057 ÷ 2 = 3 548 528 + 1;
  • 3 548 528 ÷ 2 = 1 774 264 + 0;
  • 1 774 264 ÷ 2 = 887 132 + 0;
  • 887 132 ÷ 2 = 443 566 + 0;
  • 443 566 ÷ 2 = 221 783 + 0;
  • 221 783 ÷ 2 = 110 891 + 1;
  • 110 891 ÷ 2 = 55 445 + 1;
  • 55 445 ÷ 2 = 27 722 + 1;
  • 27 722 ÷ 2 = 13 861 + 0;
  • 13 861 ÷ 2 = 6 930 + 1;
  • 6 930 ÷ 2 = 3 465 + 0;
  • 3 465 ÷ 2 = 1 732 + 1;
  • 1 732 ÷ 2 = 866 + 0;
  • 866 ÷ 2 = 433 + 0;
  • 433 ÷ 2 = 216 + 1;
  • 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;

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

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

65 458 797 077 764 444 631 597 821(10) =


11 0110 0010 0101 0111 0000 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1111 1101(2)


3. Normalize the binary representation of the number.

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


65 458 797 077 764 444 631 597 821(10) =


11 0110 0010 0101 0111 0000 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1111 1101(2) =


11 0110 0010 0101 0111 0000 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1111 1101(2) × 20 =


1.1011 0001 0010 1011 1000 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0111 1110 1(2) × 285


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


Mantissa (not normalized):
1.1011 0001 0010 1011 1000 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0111 1110 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


85 + 2(8-1) - 1 =


(85 + 127)(10) =


212(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;
  • 212 ÷ 2 = 106 + 0;
  • 106 ÷ 2 = 53 + 0;
  • 53 ÷ 2 = 26 + 1;
  • 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) =


212(10) =


1101 0100(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 1000 1001 0101 1100 0010 00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 1111 1101 =


101 1000 1001 0101 1100 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 0100


Mantissa (23 bits) =
101 1000 1001 0101 1100 0010


Decimal number 65 458 797 077 764 444 631 597 821 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1101 0100 - 101 1000 1001 0101 1100 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