201 723 199 999 999 999 999 999 999 696 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 201 723 199 999 999 999 999 999 999 696(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
201 723 199 999 999 999 999 999 999 696(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;
  • 201 723 199 999 999 999 999 999 999 696 ÷ 2 = 100 861 599 999 999 999 999 999 999 848 + 0;
  • 100 861 599 999 999 999 999 999 999 848 ÷ 2 = 50 430 799 999 999 999 999 999 999 924 + 0;
  • 50 430 799 999 999 999 999 999 999 924 ÷ 2 = 25 215 399 999 999 999 999 999 999 962 + 0;
  • 25 215 399 999 999 999 999 999 999 962 ÷ 2 = 12 607 699 999 999 999 999 999 999 981 + 0;
  • 12 607 699 999 999 999 999 999 999 981 ÷ 2 = 6 303 849 999 999 999 999 999 999 990 + 1;
  • 6 303 849 999 999 999 999 999 999 990 ÷ 2 = 3 151 924 999 999 999 999 999 999 995 + 0;
  • 3 151 924 999 999 999 999 999 999 995 ÷ 2 = 1 575 962 499 999 999 999 999 999 997 + 1;
  • 1 575 962 499 999 999 999 999 999 997 ÷ 2 = 787 981 249 999 999 999 999 999 998 + 1;
  • 787 981 249 999 999 999 999 999 998 ÷ 2 = 393 990 624 999 999 999 999 999 999 + 0;
  • 393 990 624 999 999 999 999 999 999 ÷ 2 = 196 995 312 499 999 999 999 999 999 + 1;
  • 196 995 312 499 999 999 999 999 999 ÷ 2 = 98 497 656 249 999 999 999 999 999 + 1;
  • 98 497 656 249 999 999 999 999 999 ÷ 2 = 49 248 828 124 999 999 999 999 999 + 1;
  • 49 248 828 124 999 999 999 999 999 ÷ 2 = 24 624 414 062 499 999 999 999 999 + 1;
  • 24 624 414 062 499 999 999 999 999 ÷ 2 = 12 312 207 031 249 999 999 999 999 + 1;
  • 12 312 207 031 249 999 999 999 999 ÷ 2 = 6 156 103 515 624 999 999 999 999 + 1;
  • 6 156 103 515 624 999 999 999 999 ÷ 2 = 3 078 051 757 812 499 999 999 999 + 1;
  • 3 078 051 757 812 499 999 999 999 ÷ 2 = 1 539 025 878 906 249 999 999 999 + 1;
  • 1 539 025 878 906 249 999 999 999 ÷ 2 = 769 512 939 453 124 999 999 999 + 1;
  • 769 512 939 453 124 999 999 999 ÷ 2 = 384 756 469 726 562 499 999 999 + 1;
  • 384 756 469 726 562 499 999 999 ÷ 2 = 192 378 234 863 281 249 999 999 + 1;
  • 192 378 234 863 281 249 999 999 ÷ 2 = 96 189 117 431 640 624 999 999 + 1;
  • 96 189 117 431 640 624 999 999 ÷ 2 = 48 094 558 715 820 312 499 999 + 1;
  • 48 094 558 715 820 312 499 999 ÷ 2 = 24 047 279 357 910 156 249 999 + 1;
  • 24 047 279 357 910 156 249 999 ÷ 2 = 12 023 639 678 955 078 124 999 + 1;
  • 12 023 639 678 955 078 124 999 ÷ 2 = 6 011 819 839 477 539 062 499 + 1;
  • 6 011 819 839 477 539 062 499 ÷ 2 = 3 005 909 919 738 769 531 249 + 1;
  • 3 005 909 919 738 769 531 249 ÷ 2 = 1 502 954 959 869 384 765 624 + 1;
  • 1 502 954 959 869 384 765 624 ÷ 2 = 751 477 479 934 692 382 812 + 0;
  • 751 477 479 934 692 382 812 ÷ 2 = 375 738 739 967 346 191 406 + 0;
  • 375 738 739 967 346 191 406 ÷ 2 = 187 869 369 983 673 095 703 + 0;
  • 187 869 369 983 673 095 703 ÷ 2 = 93 934 684 991 836 547 851 + 1;
  • 93 934 684 991 836 547 851 ÷ 2 = 46 967 342 495 918 273 925 + 1;
  • 46 967 342 495 918 273 925 ÷ 2 = 23 483 671 247 959 136 962 + 1;
  • 23 483 671 247 959 136 962 ÷ 2 = 11 741 835 623 979 568 481 + 0;
  • 11 741 835 623 979 568 481 ÷ 2 = 5 870 917 811 989 784 240 + 1;
  • 5 870 917 811 989 784 240 ÷ 2 = 2 935 458 905 994 892 120 + 0;
  • 2 935 458 905 994 892 120 ÷ 2 = 1 467 729 452 997 446 060 + 0;
  • 1 467 729 452 997 446 060 ÷ 2 = 733 864 726 498 723 030 + 0;
  • 733 864 726 498 723 030 ÷ 2 = 366 932 363 249 361 515 + 0;
  • 366 932 363 249 361 515 ÷ 2 = 183 466 181 624 680 757 + 1;
  • 183 466 181 624 680 757 ÷ 2 = 91 733 090 812 340 378 + 1;
  • 91 733 090 812 340 378 ÷ 2 = 45 866 545 406 170 189 + 0;
  • 45 866 545 406 170 189 ÷ 2 = 22 933 272 703 085 094 + 1;
  • 22 933 272 703 085 094 ÷ 2 = 11 466 636 351 542 547 + 0;
  • 11 466 636 351 542 547 ÷ 2 = 5 733 318 175 771 273 + 1;
  • 5 733 318 175 771 273 ÷ 2 = 2 866 659 087 885 636 + 1;
  • 2 866 659 087 885 636 ÷ 2 = 1 433 329 543 942 818 + 0;
  • 1 433 329 543 942 818 ÷ 2 = 716 664 771 971 409 + 0;
  • 716 664 771 971 409 ÷ 2 = 358 332 385 985 704 + 1;
  • 358 332 385 985 704 ÷ 2 = 179 166 192 992 852 + 0;
  • 179 166 192 992 852 ÷ 2 = 89 583 096 496 426 + 0;
  • 89 583 096 496 426 ÷ 2 = 44 791 548 248 213 + 0;
  • 44 791 548 248 213 ÷ 2 = 22 395 774 124 106 + 1;
  • 22 395 774 124 106 ÷ 2 = 11 197 887 062 053 + 0;
  • 11 197 887 062 053 ÷ 2 = 5 598 943 531 026 + 1;
  • 5 598 943 531 026 ÷ 2 = 2 799 471 765 513 + 0;
  • 2 799 471 765 513 ÷ 2 = 1 399 735 882 756 + 1;
  • 1 399 735 882 756 ÷ 2 = 699 867 941 378 + 0;
  • 699 867 941 378 ÷ 2 = 349 933 970 689 + 0;
  • 349 933 970 689 ÷ 2 = 174 966 985 344 + 1;
  • 174 966 985 344 ÷ 2 = 87 483 492 672 + 0;
  • 87 483 492 672 ÷ 2 = 43 741 746 336 + 0;
  • 43 741 746 336 ÷ 2 = 21 870 873 168 + 0;
  • 21 870 873 168 ÷ 2 = 10 935 436 584 + 0;
  • 10 935 436 584 ÷ 2 = 5 467 718 292 + 0;
  • 5 467 718 292 ÷ 2 = 2 733 859 146 + 0;
  • 2 733 859 146 ÷ 2 = 1 366 929 573 + 0;
  • 1 366 929 573 ÷ 2 = 683 464 786 + 1;
  • 683 464 786 ÷ 2 = 341 732 393 + 0;
  • 341 732 393 ÷ 2 = 170 866 196 + 1;
  • 170 866 196 ÷ 2 = 85 433 098 + 0;
  • 85 433 098 ÷ 2 = 42 716 549 + 0;
  • 42 716 549 ÷ 2 = 21 358 274 + 1;
  • 21 358 274 ÷ 2 = 10 679 137 + 0;
  • 10 679 137 ÷ 2 = 5 339 568 + 1;
  • 5 339 568 ÷ 2 = 2 669 784 + 0;
  • 2 669 784 ÷ 2 = 1 334 892 + 0;
  • 1 334 892 ÷ 2 = 667 446 + 0;
  • 667 446 ÷ 2 = 333 723 + 0;
  • 333 723 ÷ 2 = 166 861 + 1;
  • 166 861 ÷ 2 = 83 430 + 1;
  • 83 430 ÷ 2 = 41 715 + 0;
  • 41 715 ÷ 2 = 20 857 + 1;
  • 20 857 ÷ 2 = 10 428 + 1;
  • 10 428 ÷ 2 = 5 214 + 0;
  • 5 214 ÷ 2 = 2 607 + 0;
  • 2 607 ÷ 2 = 1 303 + 1;
  • 1 303 ÷ 2 = 651 + 1;
  • 651 ÷ 2 = 325 + 1;
  • 325 ÷ 2 = 162 + 1;
  • 162 ÷ 2 = 81 + 0;
  • 81 ÷ 2 = 40 + 1;
  • 40 ÷ 2 = 20 + 0;
  • 20 ÷ 2 = 10 + 0;
  • 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.

201 723 199 999 999 999 999 999 999 696(10) =


10 1000 1011 1100 1101 1000 0101 0010 1000 0000 1001 0101 0001 0011 0101 1000 0101 1100 0111 1111 1111 1111 1110 1101 0000(2)


3. Normalize the binary representation of the number.

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


201 723 199 999 999 999 999 999 999 696(10) =


10 1000 1011 1100 1101 1000 0101 0010 1000 0000 1001 0101 0001 0011 0101 1000 0101 1100 0111 1111 1111 1111 1110 1101 0000(2) =


10 1000 1011 1100 1101 1000 0101 0010 1000 0000 1001 0101 0001 0011 0101 1000 0101 1100 0111 1111 1111 1111 1110 1101 0000(2) × 20 =


1.0100 0101 1110 0110 1100 0010 1001 0100 0000 0100 1010 1000 1001 1010 1100 0010 1110 0011 1111 1111 1111 1111 0110 1000 0(2) × 297


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


Mantissa (not normalized):
1.0100 0101 1110 0110 1100 0010 1001 0100 0000 0100 1010 1000 1001 1010 1100 0010 1110 0011 1111 1111 1111 1111 0110 1000 0


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


97 + 2(8-1) - 1 =


(97 + 127)(10) =


224(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;
  • 224 ÷ 2 = 112 + 0;
  • 112 ÷ 2 = 56 + 0;
  • 56 ÷ 2 = 28 + 0;
  • 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) =


224(10) =


1110 0000(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 0010 1111 0011 0110 0001 01 0010 1000 0000 1001 0101 0001 0011 0101 1000 0101 1100 0111 1111 1111 1111 1110 1101 0000 =


010 0010 1111 0011 0110 0001


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 0000


Mantissa (23 bits) =
010 0010 1111 0011 0110 0001


Decimal number 201 723 199 999 999 999 999 999 999 696 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 0000 - 010 0010 1111 0011 0110 0001


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