14 603 334 914 629 202 705 242 020 925 930 965 Converted to 32 Bit Single Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 14 603 334 914 629 202 705 242 020 925 930 965(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
14 603 334 914 629 202 705 242 020 925 930 965(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;
  • 14 603 334 914 629 202 705 242 020 925 930 965 ÷ 2 = 7 301 667 457 314 601 352 621 010 462 965 482 + 1;
  • 7 301 667 457 314 601 352 621 010 462 965 482 ÷ 2 = 3 650 833 728 657 300 676 310 505 231 482 741 + 0;
  • 3 650 833 728 657 300 676 310 505 231 482 741 ÷ 2 = 1 825 416 864 328 650 338 155 252 615 741 370 + 1;
  • 1 825 416 864 328 650 338 155 252 615 741 370 ÷ 2 = 912 708 432 164 325 169 077 626 307 870 685 + 0;
  • 912 708 432 164 325 169 077 626 307 870 685 ÷ 2 = 456 354 216 082 162 584 538 813 153 935 342 + 1;
  • 456 354 216 082 162 584 538 813 153 935 342 ÷ 2 = 228 177 108 041 081 292 269 406 576 967 671 + 0;
  • 228 177 108 041 081 292 269 406 576 967 671 ÷ 2 = 114 088 554 020 540 646 134 703 288 483 835 + 1;
  • 114 088 554 020 540 646 134 703 288 483 835 ÷ 2 = 57 044 277 010 270 323 067 351 644 241 917 + 1;
  • 57 044 277 010 270 323 067 351 644 241 917 ÷ 2 = 28 522 138 505 135 161 533 675 822 120 958 + 1;
  • 28 522 138 505 135 161 533 675 822 120 958 ÷ 2 = 14 261 069 252 567 580 766 837 911 060 479 + 0;
  • 14 261 069 252 567 580 766 837 911 060 479 ÷ 2 = 7 130 534 626 283 790 383 418 955 530 239 + 1;
  • 7 130 534 626 283 790 383 418 955 530 239 ÷ 2 = 3 565 267 313 141 895 191 709 477 765 119 + 1;
  • 3 565 267 313 141 895 191 709 477 765 119 ÷ 2 = 1 782 633 656 570 947 595 854 738 882 559 + 1;
  • 1 782 633 656 570 947 595 854 738 882 559 ÷ 2 = 891 316 828 285 473 797 927 369 441 279 + 1;
  • 891 316 828 285 473 797 927 369 441 279 ÷ 2 = 445 658 414 142 736 898 963 684 720 639 + 1;
  • 445 658 414 142 736 898 963 684 720 639 ÷ 2 = 222 829 207 071 368 449 481 842 360 319 + 1;
  • 222 829 207 071 368 449 481 842 360 319 ÷ 2 = 111 414 603 535 684 224 740 921 180 159 + 1;
  • 111 414 603 535 684 224 740 921 180 159 ÷ 2 = 55 707 301 767 842 112 370 460 590 079 + 1;
  • 55 707 301 767 842 112 370 460 590 079 ÷ 2 = 27 853 650 883 921 056 185 230 295 039 + 1;
  • 27 853 650 883 921 056 185 230 295 039 ÷ 2 = 13 926 825 441 960 528 092 615 147 519 + 1;
  • 13 926 825 441 960 528 092 615 147 519 ÷ 2 = 6 963 412 720 980 264 046 307 573 759 + 1;
  • 6 963 412 720 980 264 046 307 573 759 ÷ 2 = 3 481 706 360 490 132 023 153 786 879 + 1;
  • 3 481 706 360 490 132 023 153 786 879 ÷ 2 = 1 740 853 180 245 066 011 576 893 439 + 1;
  • 1 740 853 180 245 066 011 576 893 439 ÷ 2 = 870 426 590 122 533 005 788 446 719 + 1;
  • 870 426 590 122 533 005 788 446 719 ÷ 2 = 435 213 295 061 266 502 894 223 359 + 1;
  • 435 213 295 061 266 502 894 223 359 ÷ 2 = 217 606 647 530 633 251 447 111 679 + 1;
  • 217 606 647 530 633 251 447 111 679 ÷ 2 = 108 803 323 765 316 625 723 555 839 + 1;
  • 108 803 323 765 316 625 723 555 839 ÷ 2 = 54 401 661 882 658 312 861 777 919 + 1;
  • 54 401 661 882 658 312 861 777 919 ÷ 2 = 27 200 830 941 329 156 430 888 959 + 1;
  • 27 200 830 941 329 156 430 888 959 ÷ 2 = 13 600 415 470 664 578 215 444 479 + 1;
  • 13 600 415 470 664 578 215 444 479 ÷ 2 = 6 800 207 735 332 289 107 722 239 + 1;
  • 6 800 207 735 332 289 107 722 239 ÷ 2 = 3 400 103 867 666 144 553 861 119 + 1;
  • 3 400 103 867 666 144 553 861 119 ÷ 2 = 1 700 051 933 833 072 276 930 559 + 1;
  • 1 700 051 933 833 072 276 930 559 ÷ 2 = 850 025 966 916 536 138 465 279 + 1;
  • 850 025 966 916 536 138 465 279 ÷ 2 = 425 012 983 458 268 069 232 639 + 1;
  • 425 012 983 458 268 069 232 639 ÷ 2 = 212 506 491 729 134 034 616 319 + 1;
  • 212 506 491 729 134 034 616 319 ÷ 2 = 106 253 245 864 567 017 308 159 + 1;
  • 106 253 245 864 567 017 308 159 ÷ 2 = 53 126 622 932 283 508 654 079 + 1;
  • 53 126 622 932 283 508 654 079 ÷ 2 = 26 563 311 466 141 754 327 039 + 1;
  • 26 563 311 466 141 754 327 039 ÷ 2 = 13 281 655 733 070 877 163 519 + 1;
  • 13 281 655 733 070 877 163 519 ÷ 2 = 6 640 827 866 535 438 581 759 + 1;
  • 6 640 827 866 535 438 581 759 ÷ 2 = 3 320 413 933 267 719 290 879 + 1;
  • 3 320 413 933 267 719 290 879 ÷ 2 = 1 660 206 966 633 859 645 439 + 1;
  • 1 660 206 966 633 859 645 439 ÷ 2 = 830 103 483 316 929 822 719 + 1;
  • 830 103 483 316 929 822 719 ÷ 2 = 415 051 741 658 464 911 359 + 1;
  • 415 051 741 658 464 911 359 ÷ 2 = 207 525 870 829 232 455 679 + 1;
  • 207 525 870 829 232 455 679 ÷ 2 = 103 762 935 414 616 227 839 + 1;
  • 103 762 935 414 616 227 839 ÷ 2 = 51 881 467 707 308 113 919 + 1;
  • 51 881 467 707 308 113 919 ÷ 2 = 25 940 733 853 654 056 959 + 1;
  • 25 940 733 853 654 056 959 ÷ 2 = 12 970 366 926 827 028 479 + 1;
  • 12 970 366 926 827 028 479 ÷ 2 = 6 485 183 463 413 514 239 + 1;
  • 6 485 183 463 413 514 239 ÷ 2 = 3 242 591 731 706 757 119 + 1;
  • 3 242 591 731 706 757 119 ÷ 2 = 1 621 295 865 853 378 559 + 1;
  • 1 621 295 865 853 378 559 ÷ 2 = 810 647 932 926 689 279 + 1;
  • 810 647 932 926 689 279 ÷ 2 = 405 323 966 463 344 639 + 1;
  • 405 323 966 463 344 639 ÷ 2 = 202 661 983 231 672 319 + 1;
  • 202 661 983 231 672 319 ÷ 2 = 101 330 991 615 836 159 + 1;
  • 101 330 991 615 836 159 ÷ 2 = 50 665 495 807 918 079 + 1;
  • 50 665 495 807 918 079 ÷ 2 = 25 332 747 903 959 039 + 1;
  • 25 332 747 903 959 039 ÷ 2 = 12 666 373 951 979 519 + 1;
  • 12 666 373 951 979 519 ÷ 2 = 6 333 186 975 989 759 + 1;
  • 6 333 186 975 989 759 ÷ 2 = 3 166 593 487 994 879 + 1;
  • 3 166 593 487 994 879 ÷ 2 = 1 583 296 743 997 439 + 1;
  • 1 583 296 743 997 439 ÷ 2 = 791 648 371 998 719 + 1;
  • 791 648 371 998 719 ÷ 2 = 395 824 185 999 359 + 1;
  • 395 824 185 999 359 ÷ 2 = 197 912 092 999 679 + 1;
  • 197 912 092 999 679 ÷ 2 = 98 956 046 499 839 + 1;
  • 98 956 046 499 839 ÷ 2 = 49 478 023 249 919 + 1;
  • 49 478 023 249 919 ÷ 2 = 24 739 011 624 959 + 1;
  • 24 739 011 624 959 ÷ 2 = 12 369 505 812 479 + 1;
  • 12 369 505 812 479 ÷ 2 = 6 184 752 906 239 + 1;
  • 6 184 752 906 239 ÷ 2 = 3 092 376 453 119 + 1;
  • 3 092 376 453 119 ÷ 2 = 1 546 188 226 559 + 1;
  • 1 546 188 226 559 ÷ 2 = 773 094 113 279 + 1;
  • 773 094 113 279 ÷ 2 = 386 547 056 639 + 1;
  • 386 547 056 639 ÷ 2 = 193 273 528 319 + 1;
  • 193 273 528 319 ÷ 2 = 96 636 764 159 + 1;
  • 96 636 764 159 ÷ 2 = 48 318 382 079 + 1;
  • 48 318 382 079 ÷ 2 = 24 159 191 039 + 1;
  • 24 159 191 039 ÷ 2 = 12 079 595 519 + 1;
  • 12 079 595 519 ÷ 2 = 6 039 797 759 + 1;
  • 6 039 797 759 ÷ 2 = 3 019 898 879 + 1;
  • 3 019 898 879 ÷ 2 = 1 509 949 439 + 1;
  • 1 509 949 439 ÷ 2 = 754 974 719 + 1;
  • 754 974 719 ÷ 2 = 377 487 359 + 1;
  • 377 487 359 ÷ 2 = 188 743 679 + 1;
  • 188 743 679 ÷ 2 = 94 371 839 + 1;
  • 94 371 839 ÷ 2 = 47 185 919 + 1;
  • 47 185 919 ÷ 2 = 23 592 959 + 1;
  • 23 592 959 ÷ 2 = 11 796 479 + 1;
  • 11 796 479 ÷ 2 = 5 898 239 + 1;
  • 5 898 239 ÷ 2 = 2 949 119 + 1;
  • 2 949 119 ÷ 2 = 1 474 559 + 1;
  • 1 474 559 ÷ 2 = 737 279 + 1;
  • 737 279 ÷ 2 = 368 639 + 1;
  • 368 639 ÷ 2 = 184 319 + 1;
  • 184 319 ÷ 2 = 92 159 + 1;
  • 92 159 ÷ 2 = 46 079 + 1;
  • 46 079 ÷ 2 = 23 039 + 1;
  • 23 039 ÷ 2 = 11 519 + 1;
  • 11 519 ÷ 2 = 5 759 + 1;
  • 5 759 ÷ 2 = 2 879 + 1;
  • 2 879 ÷ 2 = 1 439 + 1;
  • 1 439 ÷ 2 = 719 + 1;
  • 719 ÷ 2 = 359 + 1;
  • 359 ÷ 2 = 179 + 1;
  • 179 ÷ 2 = 89 + 1;
  • 89 ÷ 2 = 44 + 1;
  • 44 ÷ 2 = 22 + 0;
  • 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 positive number.

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

14 603 334 914 629 202 705 242 020 925 930 965(10) =


10 1100 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1101 1101 0101(2)


3. Normalize the binary representation of the number.

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


14 603 334 914 629 202 705 242 020 925 930 965(10) =


10 1100 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1101 1101 0101(2) =


10 1100 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1101 1101 0101(2) × 20 =


1.0110 0111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1110 1110 1010 1(2) × 2113


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


Mantissa (not normalized):
1.0110 0111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1110 1110 1010 1


5. Adjust the exponent.

Use the 8 bit excess/bias notation:


Exponent (adjusted) =


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


113 + 2(8-1) - 1 =


(113 + 127)(10) =


240(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;
  • 240 ÷ 2 = 120 + 0;
  • 120 ÷ 2 = 60 + 0;
  • 60 ÷ 2 = 30 + 0;
  • 30 ÷ 2 = 15 + 0;
  • 15 ÷ 2 = 7 + 1;
  • 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) =


240(10) =


1111 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. 011 0011 1111 1111 1111 1111 11 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1101 1101 0101 =


011 0011 1111 1111 1111 1111


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) =
1111 0000


Mantissa (23 bits) =
011 0011 1111 1111 1111 1111


Decimal number 14 603 334 914 629 202 705 242 020 925 930 965 converted to 32 bit single precision IEEE 754 binary floating point representation:

0 - 1111 0000 - 011 0011 1111 1111 1111 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