-67 212 999 999 999 999 999 999 999 999 999 999 925 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal -67 212 999 999 999 999 999 999 999 999 999 999 925(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
-67 212 999 999 999 999 999 999 999 999 999 999 925(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. Start with the positive version of the number:

|-67 212 999 999 999 999 999 999 999 999 999 999 925| = 67 212 999 999 999 999 999 999 999 999 999 999 925


2. 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;
  • 67 212 999 999 999 999 999 999 999 999 999 999 925 ÷ 2 = 33 606 499 999 999 999 999 999 999 999 999 999 962 + 1;
  • 33 606 499 999 999 999 999 999 999 999 999 999 962 ÷ 2 = 16 803 249 999 999 999 999 999 999 999 999 999 981 + 0;
  • 16 803 249 999 999 999 999 999 999 999 999 999 981 ÷ 2 = 8 401 624 999 999 999 999 999 999 999 999 999 990 + 1;
  • 8 401 624 999 999 999 999 999 999 999 999 999 990 ÷ 2 = 4 200 812 499 999 999 999 999 999 999 999 999 995 + 0;
  • 4 200 812 499 999 999 999 999 999 999 999 999 995 ÷ 2 = 2 100 406 249 999 999 999 999 999 999 999 999 997 + 1;
  • 2 100 406 249 999 999 999 999 999 999 999 999 997 ÷ 2 = 1 050 203 124 999 999 999 999 999 999 999 999 998 + 1;
  • 1 050 203 124 999 999 999 999 999 999 999 999 998 ÷ 2 = 525 101 562 499 999 999 999 999 999 999 999 999 + 0;
  • 525 101 562 499 999 999 999 999 999 999 999 999 ÷ 2 = 262 550 781 249 999 999 999 999 999 999 999 999 + 1;
  • 262 550 781 249 999 999 999 999 999 999 999 999 ÷ 2 = 131 275 390 624 999 999 999 999 999 999 999 999 + 1;
  • 131 275 390 624 999 999 999 999 999 999 999 999 ÷ 2 = 65 637 695 312 499 999 999 999 999 999 999 999 + 1;
  • 65 637 695 312 499 999 999 999 999 999 999 999 ÷ 2 = 32 818 847 656 249 999 999 999 999 999 999 999 + 1;
  • 32 818 847 656 249 999 999 999 999 999 999 999 ÷ 2 = 16 409 423 828 124 999 999 999 999 999 999 999 + 1;
  • 16 409 423 828 124 999 999 999 999 999 999 999 ÷ 2 = 8 204 711 914 062 499 999 999 999 999 999 999 + 1;
  • 8 204 711 914 062 499 999 999 999 999 999 999 ÷ 2 = 4 102 355 957 031 249 999 999 999 999 999 999 + 1;
  • 4 102 355 957 031 249 999 999 999 999 999 999 ÷ 2 = 2 051 177 978 515 624 999 999 999 999 999 999 + 1;
  • 2 051 177 978 515 624 999 999 999 999 999 999 ÷ 2 = 1 025 588 989 257 812 499 999 999 999 999 999 + 1;
  • 1 025 588 989 257 812 499 999 999 999 999 999 ÷ 2 = 512 794 494 628 906 249 999 999 999 999 999 + 1;
  • 512 794 494 628 906 249 999 999 999 999 999 ÷ 2 = 256 397 247 314 453 124 999 999 999 999 999 + 1;
  • 256 397 247 314 453 124 999 999 999 999 999 ÷ 2 = 128 198 623 657 226 562 499 999 999 999 999 + 1;
  • 128 198 623 657 226 562 499 999 999 999 999 ÷ 2 = 64 099 311 828 613 281 249 999 999 999 999 + 1;
  • 64 099 311 828 613 281 249 999 999 999 999 ÷ 2 = 32 049 655 914 306 640 624 999 999 999 999 + 1;
  • 32 049 655 914 306 640 624 999 999 999 999 ÷ 2 = 16 024 827 957 153 320 312 499 999 999 999 + 1;
  • 16 024 827 957 153 320 312 499 999 999 999 ÷ 2 = 8 012 413 978 576 660 156 249 999 999 999 + 1;
  • 8 012 413 978 576 660 156 249 999 999 999 ÷ 2 = 4 006 206 989 288 330 078 124 999 999 999 + 1;
  • 4 006 206 989 288 330 078 124 999 999 999 ÷ 2 = 2 003 103 494 644 165 039 062 499 999 999 + 1;
  • 2 003 103 494 644 165 039 062 499 999 999 ÷ 2 = 1 001 551 747 322 082 519 531 249 999 999 + 1;
  • 1 001 551 747 322 082 519 531 249 999 999 ÷ 2 = 500 775 873 661 041 259 765 624 999 999 + 1;
  • 500 775 873 661 041 259 765 624 999 999 ÷ 2 = 250 387 936 830 520 629 882 812 499 999 + 1;
  • 250 387 936 830 520 629 882 812 499 999 ÷ 2 = 125 193 968 415 260 314 941 406 249 999 + 1;
  • 125 193 968 415 260 314 941 406 249 999 ÷ 2 = 62 596 984 207 630 157 470 703 124 999 + 1;
  • 62 596 984 207 630 157 470 703 124 999 ÷ 2 = 31 298 492 103 815 078 735 351 562 499 + 1;
  • 31 298 492 103 815 078 735 351 562 499 ÷ 2 = 15 649 246 051 907 539 367 675 781 249 + 1;
  • 15 649 246 051 907 539 367 675 781 249 ÷ 2 = 7 824 623 025 953 769 683 837 890 624 + 1;
  • 7 824 623 025 953 769 683 837 890 624 ÷ 2 = 3 912 311 512 976 884 841 918 945 312 + 0;
  • 3 912 311 512 976 884 841 918 945 312 ÷ 2 = 1 956 155 756 488 442 420 959 472 656 + 0;
  • 1 956 155 756 488 442 420 959 472 656 ÷ 2 = 978 077 878 244 221 210 479 736 328 + 0;
  • 978 077 878 244 221 210 479 736 328 ÷ 2 = 489 038 939 122 110 605 239 868 164 + 0;
  • 489 038 939 122 110 605 239 868 164 ÷ 2 = 244 519 469 561 055 302 619 934 082 + 0;
  • 244 519 469 561 055 302 619 934 082 ÷ 2 = 122 259 734 780 527 651 309 967 041 + 0;
  • 122 259 734 780 527 651 309 967 041 ÷ 2 = 61 129 867 390 263 825 654 983 520 + 1;
  • 61 129 867 390 263 825 654 983 520 ÷ 2 = 30 564 933 695 131 912 827 491 760 + 0;
  • 30 564 933 695 131 912 827 491 760 ÷ 2 = 15 282 466 847 565 956 413 745 880 + 0;
  • 15 282 466 847 565 956 413 745 880 ÷ 2 = 7 641 233 423 782 978 206 872 940 + 0;
  • 7 641 233 423 782 978 206 872 940 ÷ 2 = 3 820 616 711 891 489 103 436 470 + 0;
  • 3 820 616 711 891 489 103 436 470 ÷ 2 = 1 910 308 355 945 744 551 718 235 + 0;
  • 1 910 308 355 945 744 551 718 235 ÷ 2 = 955 154 177 972 872 275 859 117 + 1;
  • 955 154 177 972 872 275 859 117 ÷ 2 = 477 577 088 986 436 137 929 558 + 1;
  • 477 577 088 986 436 137 929 558 ÷ 2 = 238 788 544 493 218 068 964 779 + 0;
  • 238 788 544 493 218 068 964 779 ÷ 2 = 119 394 272 246 609 034 482 389 + 1;
  • 119 394 272 246 609 034 482 389 ÷ 2 = 59 697 136 123 304 517 241 194 + 1;
  • 59 697 136 123 304 517 241 194 ÷ 2 = 29 848 568 061 652 258 620 597 + 0;
  • 29 848 568 061 652 258 620 597 ÷ 2 = 14 924 284 030 826 129 310 298 + 1;
  • 14 924 284 030 826 129 310 298 ÷ 2 = 7 462 142 015 413 064 655 149 + 0;
  • 7 462 142 015 413 064 655 149 ÷ 2 = 3 731 071 007 706 532 327 574 + 1;
  • 3 731 071 007 706 532 327 574 ÷ 2 = 1 865 535 503 853 266 163 787 + 0;
  • 1 865 535 503 853 266 163 787 ÷ 2 = 932 767 751 926 633 081 893 + 1;
  • 932 767 751 926 633 081 893 ÷ 2 = 466 383 875 963 316 540 946 + 1;
  • 466 383 875 963 316 540 946 ÷ 2 = 233 191 937 981 658 270 473 + 0;
  • 233 191 937 981 658 270 473 ÷ 2 = 116 595 968 990 829 135 236 + 1;
  • 116 595 968 990 829 135 236 ÷ 2 = 58 297 984 495 414 567 618 + 0;
  • 58 297 984 495 414 567 618 ÷ 2 = 29 148 992 247 707 283 809 + 0;
  • 29 148 992 247 707 283 809 ÷ 2 = 14 574 496 123 853 641 904 + 1;
  • 14 574 496 123 853 641 904 ÷ 2 = 7 287 248 061 926 820 952 + 0;
  • 7 287 248 061 926 820 952 ÷ 2 = 3 643 624 030 963 410 476 + 0;
  • 3 643 624 030 963 410 476 ÷ 2 = 1 821 812 015 481 705 238 + 0;
  • 1 821 812 015 481 705 238 ÷ 2 = 910 906 007 740 852 619 + 0;
  • 910 906 007 740 852 619 ÷ 2 = 455 453 003 870 426 309 + 1;
  • 455 453 003 870 426 309 ÷ 2 = 227 726 501 935 213 154 + 1;
  • 227 726 501 935 213 154 ÷ 2 = 113 863 250 967 606 577 + 0;
  • 113 863 250 967 606 577 ÷ 2 = 56 931 625 483 803 288 + 1;
  • 56 931 625 483 803 288 ÷ 2 = 28 465 812 741 901 644 + 0;
  • 28 465 812 741 901 644 ÷ 2 = 14 232 906 370 950 822 + 0;
  • 14 232 906 370 950 822 ÷ 2 = 7 116 453 185 475 411 + 0;
  • 7 116 453 185 475 411 ÷ 2 = 3 558 226 592 737 705 + 1;
  • 3 558 226 592 737 705 ÷ 2 = 1 779 113 296 368 852 + 1;
  • 1 779 113 296 368 852 ÷ 2 = 889 556 648 184 426 + 0;
  • 889 556 648 184 426 ÷ 2 = 444 778 324 092 213 + 0;
  • 444 778 324 092 213 ÷ 2 = 222 389 162 046 106 + 1;
  • 222 389 162 046 106 ÷ 2 = 111 194 581 023 053 + 0;
  • 111 194 581 023 053 ÷ 2 = 55 597 290 511 526 + 1;
  • 55 597 290 511 526 ÷ 2 = 27 798 645 255 763 + 0;
  • 27 798 645 255 763 ÷ 2 = 13 899 322 627 881 + 1;
  • 13 899 322 627 881 ÷ 2 = 6 949 661 313 940 + 1;
  • 6 949 661 313 940 ÷ 2 = 3 474 830 656 970 + 0;
  • 3 474 830 656 970 ÷ 2 = 1 737 415 328 485 + 0;
  • 1 737 415 328 485 ÷ 2 = 868 707 664 242 + 1;
  • 868 707 664 242 ÷ 2 = 434 353 832 121 + 0;
  • 434 353 832 121 ÷ 2 = 217 176 916 060 + 1;
  • 217 176 916 060 ÷ 2 = 108 588 458 030 + 0;
  • 108 588 458 030 ÷ 2 = 54 294 229 015 + 0;
  • 54 294 229 015 ÷ 2 = 27 147 114 507 + 1;
  • 27 147 114 507 ÷ 2 = 13 573 557 253 + 1;
  • 13 573 557 253 ÷ 2 = 6 786 778 626 + 1;
  • 6 786 778 626 ÷ 2 = 3 393 389 313 + 0;
  • 3 393 389 313 ÷ 2 = 1 696 694 656 + 1;
  • 1 696 694 656 ÷ 2 = 848 347 328 + 0;
  • 848 347 328 ÷ 2 = 424 173 664 + 0;
  • 424 173 664 ÷ 2 = 212 086 832 + 0;
  • 212 086 832 ÷ 2 = 106 043 416 + 0;
  • 106 043 416 ÷ 2 = 53 021 708 + 0;
  • 53 021 708 ÷ 2 = 26 510 854 + 0;
  • 26 510 854 ÷ 2 = 13 255 427 + 0;
  • 13 255 427 ÷ 2 = 6 627 713 + 1;
  • 6 627 713 ÷ 2 = 3 313 856 + 1;
  • 3 313 856 ÷ 2 = 1 656 928 + 0;
  • 1 656 928 ÷ 2 = 828 464 + 0;
  • 828 464 ÷ 2 = 414 232 + 0;
  • 414 232 ÷ 2 = 207 116 + 0;
  • 207 116 ÷ 2 = 103 558 + 0;
  • 103 558 ÷ 2 = 51 779 + 0;
  • 51 779 ÷ 2 = 25 889 + 1;
  • 25 889 ÷ 2 = 12 944 + 1;
  • 12 944 ÷ 2 = 6 472 + 0;
  • 6 472 ÷ 2 = 3 236 + 0;
  • 3 236 ÷ 2 = 1 618 + 0;
  • 1 618 ÷ 2 = 809 + 0;
  • 809 ÷ 2 = 404 + 1;
  • 404 ÷ 2 = 202 + 0;
  • 202 ÷ 2 = 101 + 0;
  • 101 ÷ 2 = 50 + 1;
  • 50 ÷ 2 = 25 + 0;
  • 25 ÷ 2 = 12 + 1;
  • 12 ÷ 2 = 6 + 0;
  • 6 ÷ 2 = 3 + 0;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

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

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

67 212 999 999 999 999 999 999 999 999 999 999 925(10) =


11 0010 1001 0000 1100 0000 1100 0000 0101 1100 1010 0110 1010 0110 0010 1100 0010 0101 1010 1011 0110 0000 1000 0001 1111 1111 1111 1111 1111 1111 1011 0101(2)


4. Normalize the binary representation of the number.

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


67 212 999 999 999 999 999 999 999 999 999 999 925(10) =


11 0010 1001 0000 1100 0000 1100 0000 0101 1100 1010 0110 1010 0110 0010 1100 0010 0101 1010 1011 0110 0000 1000 0001 1111 1111 1111 1111 1111 1111 1011 0101(2) =


11 0010 1001 0000 1100 0000 1100 0000 0101 1100 1010 0110 1010 0110 0010 1100 0010 0101 1010 1011 0110 0000 1000 0001 1111 1111 1111 1111 1111 1111 1011 0101(2) × 20 =


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


5. 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 1 (a negative number)


Exponent (unadjusted): 125


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


6. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


125 + 2(8-1) - 1 =


(125 + 127)(10) =


252(10)


7. 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;
  • 252 ÷ 2 = 126 + 0;
  • 126 ÷ 2 = 63 + 0;
  • 63 ÷ 2 = 31 + 1;
  • 31 ÷ 2 = 15 + 1;
  • 15 ÷ 2 = 7 + 1;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

8. Construct the base 2 representation of the adjusted exponent.

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


Exponent (adjusted) =


252(10) =


1111 1100(2)


9. 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. 100 1010 0100 0011 0000 0011 00 0000 0101 1100 1010 0110 1010 0110 0010 1100 0010 0101 1010 1011 0110 0000 1000 0001 1111 1111 1111 1111 1111 1111 1011 0101 =


100 1010 0100 0011 0000 0011


10. The three elements that make up the number's 32 bit single precision IEEE 754 binary floating point representation:

Sign (1 bit) =
1 (a negative number)


Exponent (8 bits) =
1111 1100


Mantissa (23 bits) =
100 1010 0100 0011 0000 0011


Decimal number -67 212 999 999 999 999 999 999 999 999 999 999 925 converted to 32 bit single precision IEEE 754 binary floating point representation:

1 - 1111 1100 - 100 1010 0100 0011 0000 0011


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