10 101 111 099 999 999 999 999 999 999 999 570 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 10 101 111 099 999 999 999 999 999 999 999 570(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 101 111 099 999 999 999 999 999 999 999 570(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 101 111 099 999 999 999 999 999 999 999 570 ÷ 2 = 5 050 555 549 999 999 999 999 999 999 999 785 + 0;
  • 5 050 555 549 999 999 999 999 999 999 999 785 ÷ 2 = 2 525 277 774 999 999 999 999 999 999 999 892 + 1;
  • 2 525 277 774 999 999 999 999 999 999 999 892 ÷ 2 = 1 262 638 887 499 999 999 999 999 999 999 946 + 0;
  • 1 262 638 887 499 999 999 999 999 999 999 946 ÷ 2 = 631 319 443 749 999 999 999 999 999 999 973 + 0;
  • 631 319 443 749 999 999 999 999 999 999 973 ÷ 2 = 315 659 721 874 999 999 999 999 999 999 986 + 1;
  • 315 659 721 874 999 999 999 999 999 999 986 ÷ 2 = 157 829 860 937 499 999 999 999 999 999 993 + 0;
  • 157 829 860 937 499 999 999 999 999 999 993 ÷ 2 = 78 914 930 468 749 999 999 999 999 999 996 + 1;
  • 78 914 930 468 749 999 999 999 999 999 996 ÷ 2 = 39 457 465 234 374 999 999 999 999 999 998 + 0;
  • 39 457 465 234 374 999 999 999 999 999 998 ÷ 2 = 19 728 732 617 187 499 999 999 999 999 999 + 0;
  • 19 728 732 617 187 499 999 999 999 999 999 ÷ 2 = 9 864 366 308 593 749 999 999 999 999 999 + 1;
  • 9 864 366 308 593 749 999 999 999 999 999 ÷ 2 = 4 932 183 154 296 874 999 999 999 999 999 + 1;
  • 4 932 183 154 296 874 999 999 999 999 999 ÷ 2 = 2 466 091 577 148 437 499 999 999 999 999 + 1;
  • 2 466 091 577 148 437 499 999 999 999 999 ÷ 2 = 1 233 045 788 574 218 749 999 999 999 999 + 1;
  • 1 233 045 788 574 218 749 999 999 999 999 ÷ 2 = 616 522 894 287 109 374 999 999 999 999 + 1;
  • 616 522 894 287 109 374 999 999 999 999 ÷ 2 = 308 261 447 143 554 687 499 999 999 999 + 1;
  • 308 261 447 143 554 687 499 999 999 999 ÷ 2 = 154 130 723 571 777 343 749 999 999 999 + 1;
  • 154 130 723 571 777 343 749 999 999 999 ÷ 2 = 77 065 361 785 888 671 874 999 999 999 + 1;
  • 77 065 361 785 888 671 874 999 999 999 ÷ 2 = 38 532 680 892 944 335 937 499 999 999 + 1;
  • 38 532 680 892 944 335 937 499 999 999 ÷ 2 = 19 266 340 446 472 167 968 749 999 999 + 1;
  • 19 266 340 446 472 167 968 749 999 999 ÷ 2 = 9 633 170 223 236 083 984 374 999 999 + 1;
  • 9 633 170 223 236 083 984 374 999 999 ÷ 2 = 4 816 585 111 618 041 992 187 499 999 + 1;
  • 4 816 585 111 618 041 992 187 499 999 ÷ 2 = 2 408 292 555 809 020 996 093 749 999 + 1;
  • 2 408 292 555 809 020 996 093 749 999 ÷ 2 = 1 204 146 277 904 510 498 046 874 999 + 1;
  • 1 204 146 277 904 510 498 046 874 999 ÷ 2 = 602 073 138 952 255 249 023 437 499 + 1;
  • 602 073 138 952 255 249 023 437 499 ÷ 2 = 301 036 569 476 127 624 511 718 749 + 1;
  • 301 036 569 476 127 624 511 718 749 ÷ 2 = 150 518 284 738 063 812 255 859 374 + 1;
  • 150 518 284 738 063 812 255 859 374 ÷ 2 = 75 259 142 369 031 906 127 929 687 + 0;
  • 75 259 142 369 031 906 127 929 687 ÷ 2 = 37 629 571 184 515 953 063 964 843 + 1;
  • 37 629 571 184 515 953 063 964 843 ÷ 2 = 18 814 785 592 257 976 531 982 421 + 1;
  • 18 814 785 592 257 976 531 982 421 ÷ 2 = 9 407 392 796 128 988 265 991 210 + 1;
  • 9 407 392 796 128 988 265 991 210 ÷ 2 = 4 703 696 398 064 494 132 995 605 + 0;
  • 4 703 696 398 064 494 132 995 605 ÷ 2 = 2 351 848 199 032 247 066 497 802 + 1;
  • 2 351 848 199 032 247 066 497 802 ÷ 2 = 1 175 924 099 516 123 533 248 901 + 0;
  • 1 175 924 099 516 123 533 248 901 ÷ 2 = 587 962 049 758 061 766 624 450 + 1;
  • 587 962 049 758 061 766 624 450 ÷ 2 = 293 981 024 879 030 883 312 225 + 0;
  • 293 981 024 879 030 883 312 225 ÷ 2 = 146 990 512 439 515 441 656 112 + 1;
  • 146 990 512 439 515 441 656 112 ÷ 2 = 73 495 256 219 757 720 828 056 + 0;
  • 73 495 256 219 757 720 828 056 ÷ 2 = 36 747 628 109 878 860 414 028 + 0;
  • 36 747 628 109 878 860 414 028 ÷ 2 = 18 373 814 054 939 430 207 014 + 0;
  • 18 373 814 054 939 430 207 014 ÷ 2 = 9 186 907 027 469 715 103 507 + 0;
  • 9 186 907 027 469 715 103 507 ÷ 2 = 4 593 453 513 734 857 551 753 + 1;
  • 4 593 453 513 734 857 551 753 ÷ 2 = 2 296 726 756 867 428 775 876 + 1;
  • 2 296 726 756 867 428 775 876 ÷ 2 = 1 148 363 378 433 714 387 938 + 0;
  • 1 148 363 378 433 714 387 938 ÷ 2 = 574 181 689 216 857 193 969 + 0;
  • 574 181 689 216 857 193 969 ÷ 2 = 287 090 844 608 428 596 984 + 1;
  • 287 090 844 608 428 596 984 ÷ 2 = 143 545 422 304 214 298 492 + 0;
  • 143 545 422 304 214 298 492 ÷ 2 = 71 772 711 152 107 149 246 + 0;
  • 71 772 711 152 107 149 246 ÷ 2 = 35 886 355 576 053 574 623 + 0;
  • 35 886 355 576 053 574 623 ÷ 2 = 17 943 177 788 026 787 311 + 1;
  • 17 943 177 788 026 787 311 ÷ 2 = 8 971 588 894 013 393 655 + 1;
  • 8 971 588 894 013 393 655 ÷ 2 = 4 485 794 447 006 696 827 + 1;
  • 4 485 794 447 006 696 827 ÷ 2 = 2 242 897 223 503 348 413 + 1;
  • 2 242 897 223 503 348 413 ÷ 2 = 1 121 448 611 751 674 206 + 1;
  • 1 121 448 611 751 674 206 ÷ 2 = 560 724 305 875 837 103 + 0;
  • 560 724 305 875 837 103 ÷ 2 = 280 362 152 937 918 551 + 1;
  • 280 362 152 937 918 551 ÷ 2 = 140 181 076 468 959 275 + 1;
  • 140 181 076 468 959 275 ÷ 2 = 70 090 538 234 479 637 + 1;
  • 70 090 538 234 479 637 ÷ 2 = 35 045 269 117 239 818 + 1;
  • 35 045 269 117 239 818 ÷ 2 = 17 522 634 558 619 909 + 0;
  • 17 522 634 558 619 909 ÷ 2 = 8 761 317 279 309 954 + 1;
  • 8 761 317 279 309 954 ÷ 2 = 4 380 658 639 654 977 + 0;
  • 4 380 658 639 654 977 ÷ 2 = 2 190 329 319 827 488 + 1;
  • 2 190 329 319 827 488 ÷ 2 = 1 095 164 659 913 744 + 0;
  • 1 095 164 659 913 744 ÷ 2 = 547 582 329 956 872 + 0;
  • 547 582 329 956 872 ÷ 2 = 273 791 164 978 436 + 0;
  • 273 791 164 978 436 ÷ 2 = 136 895 582 489 218 + 0;
  • 136 895 582 489 218 ÷ 2 = 68 447 791 244 609 + 0;
  • 68 447 791 244 609 ÷ 2 = 34 223 895 622 304 + 1;
  • 34 223 895 622 304 ÷ 2 = 17 111 947 811 152 + 0;
  • 17 111 947 811 152 ÷ 2 = 8 555 973 905 576 + 0;
  • 8 555 973 905 576 ÷ 2 = 4 277 986 952 788 + 0;
  • 4 277 986 952 788 ÷ 2 = 2 138 993 476 394 + 0;
  • 2 138 993 476 394 ÷ 2 = 1 069 496 738 197 + 0;
  • 1 069 496 738 197 ÷ 2 = 534 748 369 098 + 1;
  • 534 748 369 098 ÷ 2 = 267 374 184 549 + 0;
  • 267 374 184 549 ÷ 2 = 133 687 092 274 + 1;
  • 133 687 092 274 ÷ 2 = 66 843 546 137 + 0;
  • 66 843 546 137 ÷ 2 = 33 421 773 068 + 1;
  • 33 421 773 068 ÷ 2 = 16 710 886 534 + 0;
  • 16 710 886 534 ÷ 2 = 8 355 443 267 + 0;
  • 8 355 443 267 ÷ 2 = 4 177 721 633 + 1;
  • 4 177 721 633 ÷ 2 = 2 088 860 816 + 1;
  • 2 088 860 816 ÷ 2 = 1 044 430 408 + 0;
  • 1 044 430 408 ÷ 2 = 522 215 204 + 0;
  • 522 215 204 ÷ 2 = 261 107 602 + 0;
  • 261 107 602 ÷ 2 = 130 553 801 + 0;
  • 130 553 801 ÷ 2 = 65 276 900 + 1;
  • 65 276 900 ÷ 2 = 32 638 450 + 0;
  • 32 638 450 ÷ 2 = 16 319 225 + 0;
  • 16 319 225 ÷ 2 = 8 159 612 + 1;
  • 8 159 612 ÷ 2 = 4 079 806 + 0;
  • 4 079 806 ÷ 2 = 2 039 903 + 0;
  • 2 039 903 ÷ 2 = 1 019 951 + 1;
  • 1 019 951 ÷ 2 = 509 975 + 1;
  • 509 975 ÷ 2 = 254 987 + 1;
  • 254 987 ÷ 2 = 127 493 + 1;
  • 127 493 ÷ 2 = 63 746 + 1;
  • 63 746 ÷ 2 = 31 873 + 0;
  • 31 873 ÷ 2 = 15 936 + 1;
  • 15 936 ÷ 2 = 7 968 + 0;
  • 7 968 ÷ 2 = 3 984 + 0;
  • 3 984 ÷ 2 = 1 992 + 0;
  • 1 992 ÷ 2 = 996 + 0;
  • 996 ÷ 2 = 498 + 0;
  • 498 ÷ 2 = 249 + 0;
  • 249 ÷ 2 = 124 + 1;
  • 124 ÷ 2 = 62 + 0;
  • 62 ÷ 2 = 31 + 0;
  • 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 101 111 099 999 999 999 999 999 999 999 570(10) =


1 1111 0010 0000 0101 1111 0010 0100 0011 0010 1010 0000 1000 0010 1011 1101 1111 0001 0011 0000 1010 1011 1011 1111 1111 1111 1110 0101 0010(2)


3. Normalize the binary representation of the number.

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


10 101 111 099 999 999 999 999 999 999 999 570(10) =


1 1111 0010 0000 0101 1111 0010 0100 0011 0010 1010 0000 1000 0010 1011 1101 1111 0001 0011 0000 1010 1011 1011 1111 1111 1111 1110 0101 0010(2) =


1 1111 0010 0000 0101 1111 0010 0100 0011 0010 1010 0000 1000 0010 1011 1101 1111 0001 0011 0000 1010 1011 1011 1111 1111 1111 1110 0101 0010(2) × 20 =


1.1111 0010 0000 0101 1111 0010 0100 0011 0010 1010 0000 1000 0010 1011 1101 1111 0001 0011 0000 1010 1011 1011 1111 1111 1111 1110 0101 0010(2) × 2112


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


Mantissa (not normalized):
1.1111 0010 0000 0101 1111 0010 0100 0011 0010 1010 0000 1000 0010 1011 1101 1111 0001 0011 0000 1010 1011 1011 1111 1111 1111 1110 0101 0010


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


112 + 2(8-1) - 1 =


(112 + 127)(10) =


239(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;
  • 239 ÷ 2 = 119 + 1;
  • 119 ÷ 2 = 59 + 1;
  • 59 ÷ 2 = 29 + 1;
  • 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) =


239(10) =


1110 1111(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 1001 0000 0010 1111 1001 0 0100 0011 0010 1010 0000 1000 0010 1011 1101 1111 0001 0011 0000 1010 1011 1011 1111 1111 1111 1110 0101 0010 =


111 1001 0000 0010 1111 1001


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 1111


Mantissa (23 bits) =
111 1001 0000 0010 1111 1001


Decimal number 10 101 111 099 999 999 999 999 999 999 999 570 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1111 - 111 1001 0000 0010 1111 1001


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