Transfer -42 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 4210 в binary like this:

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

422
-42212
0-20102
1-1052
0-422
1-21
0
Перевод чисел из одной системы счисления в другую

the result of the conversion was:

4210 = 1010102

You specified the size of your number 8 byte.

Add a signed bit to the number like this:

1010102 = 10000000000000000000000000000000000000000000000000000000001010102

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.

1000000000000000000000000000000000000000000000000000000000101010  direct code
.
1111111111111111111111111111111111111111111111111111111111010101 reverse code
+1 +1 bit
1111111111111111111111111111111111111111111111111111111111010110 additional code
the Final answer: -4210 = 11111111111111111111111111111111111111111111111111111111110101102 (8 byte)
Permanent link to the result of this calculation
Your score?