79 = 1001111
-1111111
Binary coded decimal. Each decimal digit is represented by its binary equivalent.
In Cobol, they had a serious concern for memory size. So they came up with a method known as BCD (Binary Coded Decimal), where a decimal value was converted to binary to save space. Check this link out. It will break down the details.
The advantage of encoding a decimal number in Binary-Coded Decimal (BCD) compared to straight binary is that BCD allows for easier human readability and manipulation of decimal numbers. Each decimal digit is represented by its own binary sequence, making it straightforward to convert between decimal and BCD without complex calculations. This is particularly useful in applications such as digital displays and calculators, where decimal output is required. Additionally, BCD can simplify certain arithmetic operations involving decimal numbers.
BCD, which stands for Binary Coded Decimal. 4 bits are used to code each decimal digit. So we have 0000 for zero, up to 0111 for seven, then 1000 for eight and 1001 for nine. The others {ten through fifteen} are not used, as those numbers are formed from additional decimal digits. So if you wanted to form twelve, in BCD it is 0001 0010, for 12{base ten}
69 in decimal = 1000101 in binary.
not the same
Binary coded decimal (BCD) is easier to convert between displayed or printed form than is pure binary.
-1111111
It is decimal 35.
11110110100110110101
Binary coded decimal. Each decimal digit is represented by its binary equivalent.
429 = 110101101
binary-coded decimal
39 = 100111
extended binary coded decimal interchange code
All I know is that when a number is negative, you convert the decimal into binary and if it is negative you put 1111 before the binary digits.