110 000 000 000 000 000 000 000 000 000 790 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 110 000 000 000 000 000 000 000 000 000 790(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
110 000 000 000 000 000 000 000 000 000 790(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;
  • 110 000 000 000 000 000 000 000 000 000 790 ÷ 2 = 55 000 000 000 000 000 000 000 000 000 395 + 0;
  • 55 000 000 000 000 000 000 000 000 000 395 ÷ 2 = 27 500 000 000 000 000 000 000 000 000 197 + 1;
  • 27 500 000 000 000 000 000 000 000 000 197 ÷ 2 = 13 750 000 000 000 000 000 000 000 000 098 + 1;
  • 13 750 000 000 000 000 000 000 000 000 098 ÷ 2 = 6 875 000 000 000 000 000 000 000 000 049 + 0;
  • 6 875 000 000 000 000 000 000 000 000 049 ÷ 2 = 3 437 500 000 000 000 000 000 000 000 024 + 1;
  • 3 437 500 000 000 000 000 000 000 000 024 ÷ 2 = 1 718 750 000 000 000 000 000 000 000 012 + 0;
  • 1 718 750 000 000 000 000 000 000 000 012 ÷ 2 = 859 375 000 000 000 000 000 000 000 006 + 0;
  • 859 375 000 000 000 000 000 000 000 006 ÷ 2 = 429 687 500 000 000 000 000 000 000 003 + 0;
  • 429 687 500 000 000 000 000 000 000 003 ÷ 2 = 214 843 750 000 000 000 000 000 000 001 + 1;
  • 214 843 750 000 000 000 000 000 000 001 ÷ 2 = 107 421 875 000 000 000 000 000 000 000 + 1;
  • 107 421 875 000 000 000 000 000 000 000 ÷ 2 = 53 710 937 500 000 000 000 000 000 000 + 0;
  • 53 710 937 500 000 000 000 000 000 000 ÷ 2 = 26 855 468 750 000 000 000 000 000 000 + 0;
  • 26 855 468 750 000 000 000 000 000 000 ÷ 2 = 13 427 734 375 000 000 000 000 000 000 + 0;
  • 13 427 734 375 000 000 000 000 000 000 ÷ 2 = 6 713 867 187 500 000 000 000 000 000 + 0;
  • 6 713 867 187 500 000 000 000 000 000 ÷ 2 = 3 356 933 593 750 000 000 000 000 000 + 0;
  • 3 356 933 593 750 000 000 000 000 000 ÷ 2 = 1 678 466 796 875 000 000 000 000 000 + 0;
  • 1 678 466 796 875 000 000 000 000 000 ÷ 2 = 839 233 398 437 500 000 000 000 000 + 0;
  • 839 233 398 437 500 000 000 000 000 ÷ 2 = 419 616 699 218 750 000 000 000 000 + 0;
  • 419 616 699 218 750 000 000 000 000 ÷ 2 = 209 808 349 609 375 000 000 000 000 + 0;
  • 209 808 349 609 375 000 000 000 000 ÷ 2 = 104 904 174 804 687 500 000 000 000 + 0;
  • 104 904 174 804 687 500 000 000 000 ÷ 2 = 52 452 087 402 343 750 000 000 000 + 0;
  • 52 452 087 402 343 750 000 000 000 ÷ 2 = 26 226 043 701 171 875 000 000 000 + 0;
  • 26 226 043 701 171 875 000 000 000 ÷ 2 = 13 113 021 850 585 937 500 000 000 + 0;
  • 13 113 021 850 585 937 500 000 000 ÷ 2 = 6 556 510 925 292 968 750 000 000 + 0;
  • 6 556 510 925 292 968 750 000 000 ÷ 2 = 3 278 255 462 646 484 375 000 000 + 0;
  • 3 278 255 462 646 484 375 000 000 ÷ 2 = 1 639 127 731 323 242 187 500 000 + 0;
  • 1 639 127 731 323 242 187 500 000 ÷ 2 = 819 563 865 661 621 093 750 000 + 0;
  • 819 563 865 661 621 093 750 000 ÷ 2 = 409 781 932 830 810 546 875 000 + 0;
  • 409 781 932 830 810 546 875 000 ÷ 2 = 204 890 966 415 405 273 437 500 + 0;
  • 204 890 966 415 405 273 437 500 ÷ 2 = 102 445 483 207 702 636 718 750 + 0;
  • 102 445 483 207 702 636 718 750 ÷ 2 = 51 222 741 603 851 318 359 375 + 0;
  • 51 222 741 603 851 318 359 375 ÷ 2 = 25 611 370 801 925 659 179 687 + 1;
  • 25 611 370 801 925 659 179 687 ÷ 2 = 12 805 685 400 962 829 589 843 + 1;
  • 12 805 685 400 962 829 589 843 ÷ 2 = 6 402 842 700 481 414 794 921 + 1;
  • 6 402 842 700 481 414 794 921 ÷ 2 = 3 201 421 350 240 707 397 460 + 1;
  • 3 201 421 350 240 707 397 460 ÷ 2 = 1 600 710 675 120 353 698 730 + 0;
  • 1 600 710 675 120 353 698 730 ÷ 2 = 800 355 337 560 176 849 365 + 0;
  • 800 355 337 560 176 849 365 ÷ 2 = 400 177 668 780 088 424 682 + 1;
  • 400 177 668 780 088 424 682 ÷ 2 = 200 088 834 390 044 212 341 + 0;
  • 200 088 834 390 044 212 341 ÷ 2 = 100 044 417 195 022 106 170 + 1;
  • 100 044 417 195 022 106 170 ÷ 2 = 50 022 208 597 511 053 085 + 0;
  • 50 022 208 597 511 053 085 ÷ 2 = 25 011 104 298 755 526 542 + 1;
  • 25 011 104 298 755 526 542 ÷ 2 = 12 505 552 149 377 763 271 + 0;
  • 12 505 552 149 377 763 271 ÷ 2 = 6 252 776 074 688 881 635 + 1;
  • 6 252 776 074 688 881 635 ÷ 2 = 3 126 388 037 344 440 817 + 1;
  • 3 126 388 037 344 440 817 ÷ 2 = 1 563 194 018 672 220 408 + 1;
  • 1 563 194 018 672 220 408 ÷ 2 = 781 597 009 336 110 204 + 0;
  • 781 597 009 336 110 204 ÷ 2 = 390 798 504 668 055 102 + 0;
  • 390 798 504 668 055 102 ÷ 2 = 195 399 252 334 027 551 + 0;
  • 195 399 252 334 027 551 ÷ 2 = 97 699 626 167 013 775 + 1;
  • 97 699 626 167 013 775 ÷ 2 = 48 849 813 083 506 887 + 1;
  • 48 849 813 083 506 887 ÷ 2 = 24 424 906 541 753 443 + 1;
  • 24 424 906 541 753 443 ÷ 2 = 12 212 453 270 876 721 + 1;
  • 12 212 453 270 876 721 ÷ 2 = 6 106 226 635 438 360 + 1;
  • 6 106 226 635 438 360 ÷ 2 = 3 053 113 317 719 180 + 0;
  • 3 053 113 317 719 180 ÷ 2 = 1 526 556 658 859 590 + 0;
  • 1 526 556 658 859 590 ÷ 2 = 763 278 329 429 795 + 0;
  • 763 278 329 429 795 ÷ 2 = 381 639 164 714 897 + 1;
  • 381 639 164 714 897 ÷ 2 = 190 819 582 357 448 + 1;
  • 190 819 582 357 448 ÷ 2 = 95 409 791 178 724 + 0;
  • 95 409 791 178 724 ÷ 2 = 47 704 895 589 362 + 0;
  • 47 704 895 589 362 ÷ 2 = 23 852 447 794 681 + 0;
  • 23 852 447 794 681 ÷ 2 = 11 926 223 897 340 + 1;
  • 11 926 223 897 340 ÷ 2 = 5 963 111 948 670 + 0;
  • 5 963 111 948 670 ÷ 2 = 2 981 555 974 335 + 0;
  • 2 981 555 974 335 ÷ 2 = 1 490 777 987 167 + 1;
  • 1 490 777 987 167 ÷ 2 = 745 388 993 583 + 1;
  • 745 388 993 583 ÷ 2 = 372 694 496 791 + 1;
  • 372 694 496 791 ÷ 2 = 186 347 248 395 + 1;
  • 186 347 248 395 ÷ 2 = 93 173 624 197 + 1;
  • 93 173 624 197 ÷ 2 = 46 586 812 098 + 1;
  • 46 586 812 098 ÷ 2 = 23 293 406 049 + 0;
  • 23 293 406 049 ÷ 2 = 11 646 703 024 + 1;
  • 11 646 703 024 ÷ 2 = 5 823 351 512 + 0;
  • 5 823 351 512 ÷ 2 = 2 911 675 756 + 0;
  • 2 911 675 756 ÷ 2 = 1 455 837 878 + 0;
  • 1 455 837 878 ÷ 2 = 727 918 939 + 0;
  • 727 918 939 ÷ 2 = 363 959 469 + 1;
  • 363 959 469 ÷ 2 = 181 979 734 + 1;
  • 181 979 734 ÷ 2 = 90 989 867 + 0;
  • 90 989 867 ÷ 2 = 45 494 933 + 1;
  • 45 494 933 ÷ 2 = 22 747 466 + 1;
  • 22 747 466 ÷ 2 = 11 373 733 + 0;
  • 11 373 733 ÷ 2 = 5 686 866 + 1;
  • 5 686 866 ÷ 2 = 2 843 433 + 0;
  • 2 843 433 ÷ 2 = 1 421 716 + 1;
  • 1 421 716 ÷ 2 = 710 858 + 0;
  • 710 858 ÷ 2 = 355 429 + 0;
  • 355 429 ÷ 2 = 177 714 + 1;
  • 177 714 ÷ 2 = 88 857 + 0;
  • 88 857 ÷ 2 = 44 428 + 1;
  • 44 428 ÷ 2 = 22 214 + 0;
  • 22 214 ÷ 2 = 11 107 + 0;
  • 11 107 ÷ 2 = 5 553 + 1;
  • 5 553 ÷ 2 = 2 776 + 1;
  • 2 776 ÷ 2 = 1 388 + 0;
  • 1 388 ÷ 2 = 694 + 0;
  • 694 ÷ 2 = 347 + 0;
  • 347 ÷ 2 = 173 + 1;
  • 173 ÷ 2 = 86 + 1;
  • 86 ÷ 2 = 43 + 0;
  • 43 ÷ 2 = 21 + 1;
  • 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.

110 000 000 000 000 000 000 000 000 000 790(10) =


101 0110 1100 0110 0101 0010 1011 0110 0001 0111 1110 0100 0110 0011 1110 0011 1010 1010 0111 1000 0000 0000 0000 0000 0011 0001 0110(2)


3. Normalize the binary representation of the number.

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


110 000 000 000 000 000 000 000 000 000 790(10) =


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


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


1.0101 1011 0001 1001 0100 1010 1101 1000 0101 1111 1001 0001 1000 1111 1000 1110 1010 1001 1110 0000 0000 0000 0000 0000 1100 0101 10(2) × 2106


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


Mantissa (not normalized):
1.0101 1011 0001 1001 0100 1010 1101 1000 0101 1111 1001 0001 1000 1111 1000 1110 1010 1001 1110 0000 0000 0000 0000 0000 1100 0101 10


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


106 + 2(8-1) - 1 =


(106 + 127)(10) =


233(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;
  • 233 ÷ 2 = 116 + 1;
  • 116 ÷ 2 = 58 + 0;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 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) =


233(10) =


1110 1001(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 1101 1000 1100 1010 0101 011 0110 0001 0111 1110 0100 0110 0011 1110 0011 1010 1010 0111 1000 0000 0000 0000 0000 0011 0001 0110 =


010 1101 1000 1100 1010 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) =
1110 1001


Mantissa (23 bits) =
010 1101 1000 1100 1010 0101


Decimal number 110 000 000 000 000 000 000 000 000 000 790 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1001 - 010 1101 1000 1100 1010 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