82 736 779 114 101 118 105 101 119 101 265 Converted to 64 Bit Double Precision IEEE 754 Binary Floating Point Representation Standard

Convert decimal 82 736 779 114 101 118 105 101 119 101 265(10) to 64 bit double precision IEEE 754 binary floating point representation standard (1 bit for sign, 11 bits for exponent, 52 bits for mantissa)

What are the steps to convert decimal number
82 736 779 114 101 118 105 101 119 101 265(10) to 64 bit double precision IEEE 754 binary floating point representation (1 bit for sign, 11 bits for exponent, 52 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;
  • 82 736 779 114 101 118 105 101 119 101 265 ÷ 2 = 41 368 389 557 050 559 052 550 559 550 632 + 1;
  • 41 368 389 557 050 559 052 550 559 550 632 ÷ 2 = 20 684 194 778 525 279 526 275 279 775 316 + 0;
  • 20 684 194 778 525 279 526 275 279 775 316 ÷ 2 = 10 342 097 389 262 639 763 137 639 887 658 + 0;
  • 10 342 097 389 262 639 763 137 639 887 658 ÷ 2 = 5 171 048 694 631 319 881 568 819 943 829 + 0;
  • 5 171 048 694 631 319 881 568 819 943 829 ÷ 2 = 2 585 524 347 315 659 940 784 409 971 914 + 1;
  • 2 585 524 347 315 659 940 784 409 971 914 ÷ 2 = 1 292 762 173 657 829 970 392 204 985 957 + 0;
  • 1 292 762 173 657 829 970 392 204 985 957 ÷ 2 = 646 381 086 828 914 985 196 102 492 978 + 1;
  • 646 381 086 828 914 985 196 102 492 978 ÷ 2 = 323 190 543 414 457 492 598 051 246 489 + 0;
  • 323 190 543 414 457 492 598 051 246 489 ÷ 2 = 161 595 271 707 228 746 299 025 623 244 + 1;
  • 161 595 271 707 228 746 299 025 623 244 ÷ 2 = 80 797 635 853 614 373 149 512 811 622 + 0;
  • 80 797 635 853 614 373 149 512 811 622 ÷ 2 = 40 398 817 926 807 186 574 756 405 811 + 0;
  • 40 398 817 926 807 186 574 756 405 811 ÷ 2 = 20 199 408 963 403 593 287 378 202 905 + 1;
  • 20 199 408 963 403 593 287 378 202 905 ÷ 2 = 10 099 704 481 701 796 643 689 101 452 + 1;
  • 10 099 704 481 701 796 643 689 101 452 ÷ 2 = 5 049 852 240 850 898 321 844 550 726 + 0;
  • 5 049 852 240 850 898 321 844 550 726 ÷ 2 = 2 524 926 120 425 449 160 922 275 363 + 0;
  • 2 524 926 120 425 449 160 922 275 363 ÷ 2 = 1 262 463 060 212 724 580 461 137 681 + 1;
  • 1 262 463 060 212 724 580 461 137 681 ÷ 2 = 631 231 530 106 362 290 230 568 840 + 1;
  • 631 231 530 106 362 290 230 568 840 ÷ 2 = 315 615 765 053 181 145 115 284 420 + 0;
  • 315 615 765 053 181 145 115 284 420 ÷ 2 = 157 807 882 526 590 572 557 642 210 + 0;
  • 157 807 882 526 590 572 557 642 210 ÷ 2 = 78 903 941 263 295 286 278 821 105 + 0;
  • 78 903 941 263 295 286 278 821 105 ÷ 2 = 39 451 970 631 647 643 139 410 552 + 1;
  • 39 451 970 631 647 643 139 410 552 ÷ 2 = 19 725 985 315 823 821 569 705 276 + 0;
  • 19 725 985 315 823 821 569 705 276 ÷ 2 = 9 862 992 657 911 910 784 852 638 + 0;
  • 9 862 992 657 911 910 784 852 638 ÷ 2 = 4 931 496 328 955 955 392 426 319 + 0;
  • 4 931 496 328 955 955 392 426 319 ÷ 2 = 2 465 748 164 477 977 696 213 159 + 1;
  • 2 465 748 164 477 977 696 213 159 ÷ 2 = 1 232 874 082 238 988 848 106 579 + 1;
  • 1 232 874 082 238 988 848 106 579 ÷ 2 = 616 437 041 119 494 424 053 289 + 1;
  • 616 437 041 119 494 424 053 289 ÷ 2 = 308 218 520 559 747 212 026 644 + 1;
  • 308 218 520 559 747 212 026 644 ÷ 2 = 154 109 260 279 873 606 013 322 + 0;
  • 154 109 260 279 873 606 013 322 ÷ 2 = 77 054 630 139 936 803 006 661 + 0;
  • 77 054 630 139 936 803 006 661 ÷ 2 = 38 527 315 069 968 401 503 330 + 1;
  • 38 527 315 069 968 401 503 330 ÷ 2 = 19 263 657 534 984 200 751 665 + 0;
  • 19 263 657 534 984 200 751 665 ÷ 2 = 9 631 828 767 492 100 375 832 + 1;
  • 9 631 828 767 492 100 375 832 ÷ 2 = 4 815 914 383 746 050 187 916 + 0;
  • 4 815 914 383 746 050 187 916 ÷ 2 = 2 407 957 191 873 025 093 958 + 0;
  • 2 407 957 191 873 025 093 958 ÷ 2 = 1 203 978 595 936 512 546 979 + 0;
  • 1 203 978 595 936 512 546 979 ÷ 2 = 601 989 297 968 256 273 489 + 1;
  • 601 989 297 968 256 273 489 ÷ 2 = 300 994 648 984 128 136 744 + 1;
  • 300 994 648 984 128 136 744 ÷ 2 = 150 497 324 492 064 068 372 + 0;
  • 150 497 324 492 064 068 372 ÷ 2 = 75 248 662 246 032 034 186 + 0;
  • 75 248 662 246 032 034 186 ÷ 2 = 37 624 331 123 016 017 093 + 0;
  • 37 624 331 123 016 017 093 ÷ 2 = 18 812 165 561 508 008 546 + 1;
  • 18 812 165 561 508 008 546 ÷ 2 = 9 406 082 780 754 004 273 + 0;
  • 9 406 082 780 754 004 273 ÷ 2 = 4 703 041 390 377 002 136 + 1;
  • 4 703 041 390 377 002 136 ÷ 2 = 2 351 520 695 188 501 068 + 0;
  • 2 351 520 695 188 501 068 ÷ 2 = 1 175 760 347 594 250 534 + 0;
  • 1 175 760 347 594 250 534 ÷ 2 = 587 880 173 797 125 267 + 0;
  • 587 880 173 797 125 267 ÷ 2 = 293 940 086 898 562 633 + 1;
  • 293 940 086 898 562 633 ÷ 2 = 146 970 043 449 281 316 + 1;
  • 146 970 043 449 281 316 ÷ 2 = 73 485 021 724 640 658 + 0;
  • 73 485 021 724 640 658 ÷ 2 = 36 742 510 862 320 329 + 0;
  • 36 742 510 862 320 329 ÷ 2 = 18 371 255 431 160 164 + 1;
  • 18 371 255 431 160 164 ÷ 2 = 9 185 627 715 580 082 + 0;
  • 9 185 627 715 580 082 ÷ 2 = 4 592 813 857 790 041 + 0;
  • 4 592 813 857 790 041 ÷ 2 = 2 296 406 928 895 020 + 1;
  • 2 296 406 928 895 020 ÷ 2 = 1 148 203 464 447 510 + 0;
  • 1 148 203 464 447 510 ÷ 2 = 574 101 732 223 755 + 0;
  • 574 101 732 223 755 ÷ 2 = 287 050 866 111 877 + 1;
  • 287 050 866 111 877 ÷ 2 = 143 525 433 055 938 + 1;
  • 143 525 433 055 938 ÷ 2 = 71 762 716 527 969 + 0;
  • 71 762 716 527 969 ÷ 2 = 35 881 358 263 984 + 1;
  • 35 881 358 263 984 ÷ 2 = 17 940 679 131 992 + 0;
  • 17 940 679 131 992 ÷ 2 = 8 970 339 565 996 + 0;
  • 8 970 339 565 996 ÷ 2 = 4 485 169 782 998 + 0;
  • 4 485 169 782 998 ÷ 2 = 2 242 584 891 499 + 0;
  • 2 242 584 891 499 ÷ 2 = 1 121 292 445 749 + 1;
  • 1 121 292 445 749 ÷ 2 = 560 646 222 874 + 1;
  • 560 646 222 874 ÷ 2 = 280 323 111 437 + 0;
  • 280 323 111 437 ÷ 2 = 140 161 555 718 + 1;
  • 140 161 555 718 ÷ 2 = 70 080 777 859 + 0;
  • 70 080 777 859 ÷ 2 = 35 040 388 929 + 1;
  • 35 040 388 929 ÷ 2 = 17 520 194 464 + 1;
  • 17 520 194 464 ÷ 2 = 8 760 097 232 + 0;
  • 8 760 097 232 ÷ 2 = 4 380 048 616 + 0;
  • 4 380 048 616 ÷ 2 = 2 190 024 308 + 0;
  • 2 190 024 308 ÷ 2 = 1 095 012 154 + 0;
  • 1 095 012 154 ÷ 2 = 547 506 077 + 0;
  • 547 506 077 ÷ 2 = 273 753 038 + 1;
  • 273 753 038 ÷ 2 = 136 876 519 + 0;
  • 136 876 519 ÷ 2 = 68 438 259 + 1;
  • 68 438 259 ÷ 2 = 34 219 129 + 1;
  • 34 219 129 ÷ 2 = 17 109 564 + 1;
  • 17 109 564 ÷ 2 = 8 554 782 + 0;
  • 8 554 782 ÷ 2 = 4 277 391 + 0;
  • 4 277 391 ÷ 2 = 2 138 695 + 1;
  • 2 138 695 ÷ 2 = 1 069 347 + 1;
  • 1 069 347 ÷ 2 = 534 673 + 1;
  • 534 673 ÷ 2 = 267 336 + 1;
  • 267 336 ÷ 2 = 133 668 + 0;
  • 133 668 ÷ 2 = 66 834 + 0;
  • 66 834 ÷ 2 = 33 417 + 0;
  • 33 417 ÷ 2 = 16 708 + 1;
  • 16 708 ÷ 2 = 8 354 + 0;
  • 8 354 ÷ 2 = 4 177 + 0;
  • 4 177 ÷ 2 = 2 088 + 1;
  • 2 088 ÷ 2 = 1 044 + 0;
  • 1 044 ÷ 2 = 522 + 0;
  • 522 ÷ 2 = 261 + 0;
  • 261 ÷ 2 = 130 + 1;
  • 130 ÷ 2 = 65 + 0;
  • 65 ÷ 2 = 32 + 1;
  • 32 ÷ 2 = 16 + 0;
  • 16 ÷ 2 = 8 + 0;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 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.

82 736 779 114 101 118 105 101 119 101 265(10) =


100 0001 0100 0100 1000 1111 0011 1010 0000 1101 0110 0001 0110 0100 1001 1000 1010 0011 0001 0100 1111 0001 0001 1001 1001 0101 0001(2)


3. Normalize the binary representation of the number.

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


82 736 779 114 101 118 105 101 119 101 265(10) =


100 0001 0100 0100 1000 1111 0011 1010 0000 1101 0110 0001 0110 0100 1001 1000 1010 0011 0001 0100 1111 0001 0001 1001 1001 0101 0001(2) =


100 0001 0100 0100 1000 1111 0011 1010 0000 1101 0110 0001 0110 0100 1001 1000 1010 0011 0001 0100 1111 0001 0001 1001 1001 0101 0001(2) × 20 =


1.0000 0101 0001 0010 0011 1100 1110 1000 0011 0101 1000 0101 1001 0010 0110 0010 1000 1100 0101 0011 1100 0100 0110 0110 0101 0100 01(2) × 2106


4. Up to this moment, there are the following elements that would feed into the 64 bit double precision IEEE 754 binary floating point representation:

Sign 0 (a positive number)


Exponent (unadjusted): 106


Mantissa (not normalized):
1.0000 0101 0001 0010 0011 1100 1110 1000 0011 0101 1000 0101 1001 0010 0110 0010 1000 1100 0101 0011 1100 0100 0110 0110 0101 0100 01


5. Adjust the exponent.

Use the 11 bit excess/bias notation:


Exponent (adjusted) =


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


106 + 2(11-1) - 1 =


(106 + 1 023)(10) =


1 129(10)


6. Convert the adjusted exponent from the decimal (base 10) to 11 bit binary.

Use the same technique of repeatedly dividing by 2:


  • division = quotient + remainder;
  • 1 129 ÷ 2 = 564 + 1;
  • 564 ÷ 2 = 282 + 0;
  • 282 ÷ 2 = 141 + 0;
  • 141 ÷ 2 = 70 + 1;
  • 70 ÷ 2 = 35 + 0;
  • 35 ÷ 2 = 17 + 1;
  • 17 ÷ 2 = 8 + 1;
  • 8 ÷ 2 = 4 + 0;
  • 4 ÷ 2 = 2 + 0;
  • 2 ÷ 2 = 1 + 0;
  • 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) =


1129(10) =


100 0110 1001(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 52 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. 0000 0101 0001 0010 0011 1100 1110 1000 0011 0101 1000 0101 1001 00 1001 1000 1010 0011 0001 0100 1111 0001 0001 1001 1001 0101 0001 =


0000 0101 0001 0010 0011 1100 1110 1000 0011 0101 1000 0101 1001


9. The three elements that make up the number's 64 bit double precision IEEE 754 binary floating point representation:

Sign (1 bit) =
0 (a positive number)


Exponent (11 bits) =
100 0110 1001


Mantissa (52 bits) =
0000 0101 0001 0010 0011 1100 1110 1000 0011 0101 1000 0101 1001


Decimal number 82 736 779 114 101 118 105 101 119 101 265 converted to 64 bit double precision IEEE 754 binary floating point representation:

0 - 100 0110 1001 - 0000 0101 0001 0010 0011 1100 1110 1000 0011 0101 1000 0101 1001

How to convert numbers from the decimal system (base ten) to 64 bit double precision IEEE 754 binary floating point standard

Follow the steps below to convert a base 10 decimal number to 64 bit double 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 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 from the previous 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 multiplying operations, starting from the top of the list constructed 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, shifting the decimal mark (the decimal point) "n" positions either to the left, or to the right, so that only one non zero digit remains to the left of the decimal mark.
  • 7. Adjust the exponent in 11 bit excess/bias notation and then convert it from decimal (base 10) to 11 bit binary, by using the same technique of repeatedly dividing by 2, as shown above:
    Exponent (adjusted) = Exponent (unadjusted) + 2(11-1) - 1
  • 8. Normalize mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal mark, if the case) and adjust its length to 52 bits, either by removing the excess bits from the right (losing precision...) or by adding extra bits set on '0' 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 -31.640 215 from the decimal system (base ten) to 64 bit double precision IEEE 754 binary floating point:

  • 1. Start with the positive version of the number:

    |-31.640 215| = 31.640 215

  • 2. First convert the integer part, 31. Divide it repeatedly by 2, keeping track of each remainder, until we get a quotient that is equal to zero:
    • division = quotient + remainder;
    • 31 ÷ 2 = 15 + 1;
    • 15 ÷ 2 = 7 + 1;
    • 7 ÷ 2 = 3 + 1;
    • 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:

    31(10) = 1 1111(2)

  • 4. Then, convert the fractional part, 0.640 215. 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.640 215 × 2 = 1 + 0.280 43;
    • 2) 0.280 43 × 2 = 0 + 0.560 86;
    • 3) 0.560 86 × 2 = 1 + 0.121 72;
    • 4) 0.121 72 × 2 = 0 + 0.243 44;
    • 5) 0.243 44 × 2 = 0 + 0.486 88;
    • 6) 0.486 88 × 2 = 0 + 0.973 76;
    • 7) 0.973 76 × 2 = 1 + 0.947 52;
    • 8) 0.947 52 × 2 = 1 + 0.895 04;
    • 9) 0.895 04 × 2 = 1 + 0.790 08;
    • 10) 0.790 08 × 2 = 1 + 0.580 16;
    • 11) 0.580 16 × 2 = 1 + 0.160 32;
    • 12) 0.160 32 × 2 = 0 + 0.320 64;
    • 13) 0.320 64 × 2 = 0 + 0.641 28;
    • 14) 0.641 28 × 2 = 1 + 0.282 56;
    • 15) 0.282 56 × 2 = 0 + 0.565 12;
    • 16) 0.565 12 × 2 = 1 + 0.130 24;
    • 17) 0.130 24 × 2 = 0 + 0.260 48;
    • 18) 0.260 48 × 2 = 0 + 0.520 96;
    • 19) 0.520 96 × 2 = 1 + 0.041 92;
    • 20) 0.041 92 × 2 = 0 + 0.083 84;
    • 21) 0.083 84 × 2 = 0 + 0.167 68;
    • 22) 0.167 68 × 2 = 0 + 0.335 36;
    • 23) 0.335 36 × 2 = 0 + 0.670 72;
    • 24) 0.670 72 × 2 = 1 + 0.341 44;
    • 25) 0.341 44 × 2 = 0 + 0.682 88;
    • 26) 0.682 88 × 2 = 1 + 0.365 76;
    • 27) 0.365 76 × 2 = 0 + 0.731 52;
    • 28) 0.731 52 × 2 = 1 + 0.463 04;
    • 29) 0.463 04 × 2 = 0 + 0.926 08;
    • 30) 0.926 08 × 2 = 1 + 0.852 16;
    • 31) 0.852 16 × 2 = 1 + 0.704 32;
    • 32) 0.704 32 × 2 = 1 + 0.408 64;
    • 33) 0.408 64 × 2 = 0 + 0.817 28;
    • 34) 0.817 28 × 2 = 1 + 0.634 56;
    • 35) 0.634 56 × 2 = 1 + 0.269 12;
    • 36) 0.269 12 × 2 = 0 + 0.538 24;
    • 37) 0.538 24 × 2 = 1 + 0.076 48;
    • 38) 0.076 48 × 2 = 0 + 0.152 96;
    • 39) 0.152 96 × 2 = 0 + 0.305 92;
    • 40) 0.305 92 × 2 = 0 + 0.611 84;
    • 41) 0.611 84 × 2 = 1 + 0.223 68;
    • 42) 0.223 68 × 2 = 0 + 0.447 36;
    • 43) 0.447 36 × 2 = 0 + 0.894 72;
    • 44) 0.894 72 × 2 = 1 + 0.789 44;
    • 45) 0.789 44 × 2 = 1 + 0.578 88;
    • 46) 0.578 88 × 2 = 1 + 0.157 76;
    • 47) 0.157 76 × 2 = 0 + 0.315 52;
    • 48) 0.315 52 × 2 = 0 + 0.631 04;
    • 49) 0.631 04 × 2 = 1 + 0.262 08;
    • 50) 0.262 08 × 2 = 0 + 0.524 16;
    • 51) 0.524 16 × 2 = 1 + 0.048 32;
    • 52) 0.048 32 × 2 = 0 + 0.096 64;
    • 53) 0.096 64 × 2 = 0 + 0.193 28;
    • We didn't get any fractional part that was equal to zero. But we had enough iterations (over Mantissa limit = 52) 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.640 215(10) = 0.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2)

  • 6. Summarizing - the positive number before normalization:

    31.640 215(10) = 1 1111.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2)

  • 7. Normalize the binary representation of the number, shifting the decimal mark 4 positions to the left so that only one non-zero digit stays to the left of the decimal mark:

    31.640 215(10) =
    1 1111.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2) =
    1 1111.1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2) × 20 =
    1.1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0(2) × 24

  • 8. Up to this moment, there are the following elements that would feed into the 64 bit double precision IEEE 754 binary floating point representation:

    Sign: 1 (a negative number)

    Exponent (unadjusted): 4

    Mantissa (not-normalized): 1.1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0

  • 9. Adjust the exponent in 11 bit excess/bias notation and then convert it from decimal (base 10) to 11 bit binary (base 2), by using the same technique of repeatedly dividing it by 2, as shown above:

    Exponent (adjusted) = Exponent (unadjusted) + 2(11-1) - 1 = (4 + 1023)(10) = 1027(10) =
    100 0000 0011(2)

  • 10. Normalize mantissa, remove the leading (leftmost) bit, since it's allways '1' (and the decimal sign) and adjust its length to 52 bits, by removing the excess bits, from the right (losing precision...):

    Mantissa (not-normalized): 1.1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100 1010 0

    Mantissa (normalized): 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100

  • Conclusion:

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

    Exponent (8 bits) = 100 0000 0011

    Mantissa (52 bits) = 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100

  • Number -31.640 215, converted from decimal system (base 10) to 64 bit double precision IEEE 754 binary floating point =
    1 - 100 0000 0011 - 1111 1010 0011 1110 0101 0010 0001 0101 0111 0110 1000 1001 1100