7 324 058 973 248 975 324 659 082 376 980 215.5 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 7 324 058 973 248 975 324 659 082 376 980 215.5(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
7 324 058 973 248 975 324 659 082 376 980 215.5(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. First, convert to binary (in base 2) the integer part: 7 324 058 973 248 975 324 659 082 376 980 215.
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;
  • 7 324 058 973 248 975 324 659 082 376 980 215 ÷ 2 = 3 662 029 486 624 487 662 329 541 188 490 107 + 1;
  • 3 662 029 486 624 487 662 329 541 188 490 107 ÷ 2 = 1 831 014 743 312 243 831 164 770 594 245 053 + 1;
  • 1 831 014 743 312 243 831 164 770 594 245 053 ÷ 2 = 915 507 371 656 121 915 582 385 297 122 526 + 1;
  • 915 507 371 656 121 915 582 385 297 122 526 ÷ 2 = 457 753 685 828 060 957 791 192 648 561 263 + 0;
  • 457 753 685 828 060 957 791 192 648 561 263 ÷ 2 = 228 876 842 914 030 478 895 596 324 280 631 + 1;
  • 228 876 842 914 030 478 895 596 324 280 631 ÷ 2 = 114 438 421 457 015 239 447 798 162 140 315 + 1;
  • 114 438 421 457 015 239 447 798 162 140 315 ÷ 2 = 57 219 210 728 507 619 723 899 081 070 157 + 1;
  • 57 219 210 728 507 619 723 899 081 070 157 ÷ 2 = 28 609 605 364 253 809 861 949 540 535 078 + 1;
  • 28 609 605 364 253 809 861 949 540 535 078 ÷ 2 = 14 304 802 682 126 904 930 974 770 267 539 + 0;
  • 14 304 802 682 126 904 930 974 770 267 539 ÷ 2 = 7 152 401 341 063 452 465 487 385 133 769 + 1;
  • 7 152 401 341 063 452 465 487 385 133 769 ÷ 2 = 3 576 200 670 531 726 232 743 692 566 884 + 1;
  • 3 576 200 670 531 726 232 743 692 566 884 ÷ 2 = 1 788 100 335 265 863 116 371 846 283 442 + 0;
  • 1 788 100 335 265 863 116 371 846 283 442 ÷ 2 = 894 050 167 632 931 558 185 923 141 721 + 0;
  • 894 050 167 632 931 558 185 923 141 721 ÷ 2 = 447 025 083 816 465 779 092 961 570 860 + 1;
  • 447 025 083 816 465 779 092 961 570 860 ÷ 2 = 223 512 541 908 232 889 546 480 785 430 + 0;
  • 223 512 541 908 232 889 546 480 785 430 ÷ 2 = 111 756 270 954 116 444 773 240 392 715 + 0;
  • 111 756 270 954 116 444 773 240 392 715 ÷ 2 = 55 878 135 477 058 222 386 620 196 357 + 1;
  • 55 878 135 477 058 222 386 620 196 357 ÷ 2 = 27 939 067 738 529 111 193 310 098 178 + 1;
  • 27 939 067 738 529 111 193 310 098 178 ÷ 2 = 13 969 533 869 264 555 596 655 049 089 + 0;
  • 13 969 533 869 264 555 596 655 049 089 ÷ 2 = 6 984 766 934 632 277 798 327 524 544 + 1;
  • 6 984 766 934 632 277 798 327 524 544 ÷ 2 = 3 492 383 467 316 138 899 163 762 272 + 0;
  • 3 492 383 467 316 138 899 163 762 272 ÷ 2 = 1 746 191 733 658 069 449 581 881 136 + 0;
  • 1 746 191 733 658 069 449 581 881 136 ÷ 2 = 873 095 866 829 034 724 790 940 568 + 0;
  • 873 095 866 829 034 724 790 940 568 ÷ 2 = 436 547 933 414 517 362 395 470 284 + 0;
  • 436 547 933 414 517 362 395 470 284 ÷ 2 = 218 273 966 707 258 681 197 735 142 + 0;
  • 218 273 966 707 258 681 197 735 142 ÷ 2 = 109 136 983 353 629 340 598 867 571 + 0;
  • 109 136 983 353 629 340 598 867 571 ÷ 2 = 54 568 491 676 814 670 299 433 785 + 1;
  • 54 568 491 676 814 670 299 433 785 ÷ 2 = 27 284 245 838 407 335 149 716 892 + 1;
  • 27 284 245 838 407 335 149 716 892 ÷ 2 = 13 642 122 919 203 667 574 858 446 + 0;
  • 13 642 122 919 203 667 574 858 446 ÷ 2 = 6 821 061 459 601 833 787 429 223 + 0;
  • 6 821 061 459 601 833 787 429 223 ÷ 2 = 3 410 530 729 800 916 893 714 611 + 1;
  • 3 410 530 729 800 916 893 714 611 ÷ 2 = 1 705 265 364 900 458 446 857 305 + 1;
  • 1 705 265 364 900 458 446 857 305 ÷ 2 = 852 632 682 450 229 223 428 652 + 1;
  • 852 632 682 450 229 223 428 652 ÷ 2 = 426 316 341 225 114 611 714 326 + 0;
  • 426 316 341 225 114 611 714 326 ÷ 2 = 213 158 170 612 557 305 857 163 + 0;
  • 213 158 170 612 557 305 857 163 ÷ 2 = 106 579 085 306 278 652 928 581 + 1;
  • 106 579 085 306 278 652 928 581 ÷ 2 = 53 289 542 653 139 326 464 290 + 1;
  • 53 289 542 653 139 326 464 290 ÷ 2 = 26 644 771 326 569 663 232 145 + 0;
  • 26 644 771 326 569 663 232 145 ÷ 2 = 13 322 385 663 284 831 616 072 + 1;
  • 13 322 385 663 284 831 616 072 ÷ 2 = 6 661 192 831 642 415 808 036 + 0;
  • 6 661 192 831 642 415 808 036 ÷ 2 = 3 330 596 415 821 207 904 018 + 0;
  • 3 330 596 415 821 207 904 018 ÷ 2 = 1 665 298 207 910 603 952 009 + 0;
  • 1 665 298 207 910 603 952 009 ÷ 2 = 832 649 103 955 301 976 004 + 1;
  • 832 649 103 955 301 976 004 ÷ 2 = 416 324 551 977 650 988 002 + 0;
  • 416 324 551 977 650 988 002 ÷ 2 = 208 162 275 988 825 494 001 + 0;
  • 208 162 275 988 825 494 001 ÷ 2 = 104 081 137 994 412 747 000 + 1;
  • 104 081 137 994 412 747 000 ÷ 2 = 52 040 568 997 206 373 500 + 0;
  • 52 040 568 997 206 373 500 ÷ 2 = 26 020 284 498 603 186 750 + 0;
  • 26 020 284 498 603 186 750 ÷ 2 = 13 010 142 249 301 593 375 + 0;
  • 13 010 142 249 301 593 375 ÷ 2 = 6 505 071 124 650 796 687 + 1;
  • 6 505 071 124 650 796 687 ÷ 2 = 3 252 535 562 325 398 343 + 1;
  • 3 252 535 562 325 398 343 ÷ 2 = 1 626 267 781 162 699 171 + 1;
  • 1 626 267 781 162 699 171 ÷ 2 = 813 133 890 581 349 585 + 1;
  • 813 133 890 581 349 585 ÷ 2 = 406 566 945 290 674 792 + 1;
  • 406 566 945 290 674 792 ÷ 2 = 203 283 472 645 337 396 + 0;
  • 203 283 472 645 337 396 ÷ 2 = 101 641 736 322 668 698 + 0;
  • 101 641 736 322 668 698 ÷ 2 = 50 820 868 161 334 349 + 0;
  • 50 820 868 161 334 349 ÷ 2 = 25 410 434 080 667 174 + 1;
  • 25 410 434 080 667 174 ÷ 2 = 12 705 217 040 333 587 + 0;
  • 12 705 217 040 333 587 ÷ 2 = 6 352 608 520 166 793 + 1;
  • 6 352 608 520 166 793 ÷ 2 = 3 176 304 260 083 396 + 1;
  • 3 176 304 260 083 396 ÷ 2 = 1 588 152 130 041 698 + 0;
  • 1 588 152 130 041 698 ÷ 2 = 794 076 065 020 849 + 0;
  • 794 076 065 020 849 ÷ 2 = 397 038 032 510 424 + 1;
  • 397 038 032 510 424 ÷ 2 = 198 519 016 255 212 + 0;
  • 198 519 016 255 212 ÷ 2 = 99 259 508 127 606 + 0;
  • 99 259 508 127 606 ÷ 2 = 49 629 754 063 803 + 0;
  • 49 629 754 063 803 ÷ 2 = 24 814 877 031 901 + 1;
  • 24 814 877 031 901 ÷ 2 = 12 407 438 515 950 + 1;
  • 12 407 438 515 950 ÷ 2 = 6 203 719 257 975 + 0;
  • 6 203 719 257 975 ÷ 2 = 3 101 859 628 987 + 1;
  • 3 101 859 628 987 ÷ 2 = 1 550 929 814 493 + 1;
  • 1 550 929 814 493 ÷ 2 = 775 464 907 246 + 1;
  • 775 464 907 246 ÷ 2 = 387 732 453 623 + 0;
  • 387 732 453 623 ÷ 2 = 193 866 226 811 + 1;
  • 193 866 226 811 ÷ 2 = 96 933 113 405 + 1;
  • 96 933 113 405 ÷ 2 = 48 466 556 702 + 1;
  • 48 466 556 702 ÷ 2 = 24 233 278 351 + 0;
  • 24 233 278 351 ÷ 2 = 12 116 639 175 + 1;
  • 12 116 639 175 ÷ 2 = 6 058 319 587 + 1;
  • 6 058 319 587 ÷ 2 = 3 029 159 793 + 1;
  • 3 029 159 793 ÷ 2 = 1 514 579 896 + 1;
  • 1 514 579 896 ÷ 2 = 757 289 948 + 0;
  • 757 289 948 ÷ 2 = 378 644 974 + 0;
  • 378 644 974 ÷ 2 = 189 322 487 + 0;
  • 189 322 487 ÷ 2 = 94 661 243 + 1;
  • 94 661 243 ÷ 2 = 47 330 621 + 1;
  • 47 330 621 ÷ 2 = 23 665 310 + 1;
  • 23 665 310 ÷ 2 = 11 832 655 + 0;
  • 11 832 655 ÷ 2 = 5 916 327 + 1;
  • 5 916 327 ÷ 2 = 2 958 163 + 1;
  • 2 958 163 ÷ 2 = 1 479 081 + 1;
  • 1 479 081 ÷ 2 = 739 540 + 1;
  • 739 540 ÷ 2 = 369 770 + 0;
  • 369 770 ÷ 2 = 184 885 + 0;
  • 184 885 ÷ 2 = 92 442 + 1;
  • 92 442 ÷ 2 = 46 221 + 0;
  • 46 221 ÷ 2 = 23 110 + 1;
  • 23 110 ÷ 2 = 11 555 + 0;
  • 11 555 ÷ 2 = 5 777 + 1;
  • 5 777 ÷ 2 = 2 888 + 1;
  • 2 888 ÷ 2 = 1 444 + 0;
  • 1 444 ÷ 2 = 722 + 0;
  • 722 ÷ 2 = 361 + 0;
  • 361 ÷ 2 = 180 + 1;
  • 180 ÷ 2 = 90 + 0;
  • 90 ÷ 2 = 45 + 0;
  • 45 ÷ 2 = 22 + 1;
  • 22 ÷ 2 = 11 + 0;
  • 11 ÷ 2 = 5 + 1;
  • 5 ÷ 2 = 2 + 1;
  • 2 ÷ 2 = 1 + 0;
  • 1 ÷ 2 = 0 + 1;

2. Construct the base 2 representation of the integer part of the number.

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

7 324 058 973 248 975 324 659 082 376 980 215(10) =


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


3. Convert to binary (base 2) the fractional part: 0.5.

Multiply it repeatedly by 2.


Keep track of each integer part of the results.


Stop when we get a fractional part that is equal to zero.


  • #) multiplying = integer + fractional part;
  • 1) 0.5 × 2 = 1 + 0;

4. Construct the base 2 representation of the fractional part of the number.

Take all the integer parts of the multiplying operations, starting from the top of the constructed list above:


0.5(10) =


0.1(2)

5. Positive number before normalization:

7 324 058 973 248 975 324 659 082 376 980 215.5(10) =


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

6. 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:


7 324 058 973 248 975 324 659 082 376 980 215.5(10) =


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


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


1.0110 1001 0001 1010 1001 1110 1110 0011 1101 1101 1101 1000 1001 1010 0011 1110 0010 0100 0101 1001 1100 1100 0000 1011 0010 0110 1111 0111 1(2) × 2112


7. 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.0110 1001 0001 1010 1001 1110 1110 0011 1101 1101 1101 1000 1001 1010 0011 1110 0010 0100 0101 1001 1100 1100 0000 1011 0010 0110 1111 0111 1


8. 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)


9. 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;

10. 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)


11. 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. 011 0100 1000 1101 0100 1111 01 1100 0111 1011 1011 1011 0001 0011 0100 0111 1100 0100 1000 1011 0011 1001 1000 0001 0110 0100 1101 1110 1111 =


011 0100 1000 1101 0100 1111


12. 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) =
011 0100 1000 1101 0100 1111


Decimal number 7 324 058 973 248 975 324 659 082 376 980 215.5 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1110 1111 - 011 0100 1000 1101 0100 1111

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