https://decimal-to-binary.com/decimal-to-binary-converter-online.html?id=66344

Transfer -4 from decimal in binary number system

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 410 в binary like this:

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

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

the result of the conversion was:

410 = 1002

You specified the size of your number 8 byte.

Add a signed bit to the number like this:

1002 = 10000000000000000000000000000000000000000000000000000000000001002

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.

1000000000000000000000000000000000000000000000000000000000000100  direct code
..
1111111111111111111111111111111111111111111111111111111111111011 reverse code
+1 +1 bit
1111111111111111111111111111111111111111111111111111111111111100 additional code
answer: -410 = 11111111111111111111111111111111111111111111111111111111111111002 (8 byte)