79 = 1001111
Chat with our AI personalities
-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.
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}
Decimal 11 = binary 1011