Transfer -2.3125 from decimal in binary number system

  • Calculator for translating numbers between number systems online.
  • You can translate a number from one number system to any other.
  • The calculator will show the detailed progress of the solution.
  • Calculator
  • Instruction
  • Theory
  • History
  • Report a problem

Enter a number:
His number system:
Binary
Ternary
Octal
Decimal
Hexadecimal
Binary-decimal
Other
Additional
Signed
Unsigned
1 byte
2 byte
4 bytes
8 bytes

Translate the number 2.312510 в binary like this:

the Integer part of the number is divided by the base of the new number system:

22
-21
0
Перевод чисел из одной системы счисления в другую

the Fractional part of the number is multiplied by the base of the new number system:

 Transferring numbers from one number system to another
0.3125*2
0.625*2
1.25*2
0.5*2
1.0*2

the result of the conversion was:

2.312510 = 10.01012

You specified the size of your number 8 byte.

negative fractional numbers are not supported at this time. Therefore, only the integer part of the number is involved in the further translation.

Add a signed bit to the number like this:

102 = 10000000000000000000000000000000000000000000000000000000000000102

Since the number you entered is negative, you need to translate it from the direct code to the additional one.

to do this, first perform the conversion from direct code to reverse by inverting all bits except the signed one, then get the direct code by adding 1 bit.

1000000000000000000000000000000000000000000000000000000000000010  direct code
.
1111111111111111111111111111111111111111111111111111111111111101 reverse code
+1 +1 bit
1111111111111111111111111111111111111111111111111111111111111110 additional code
the Final answer: -2.312510 = 11111111111111111111111111111111111111111111111111111111111111102 (8 byte)
Permanent link to the result of this calculation
Your score?