In this article, I'm covering something that's a little abstruse: converting numeric bases within shell scripts. There are really four commonly used numeric bases to consider: binary, octal, decimal ...
Conversion of binary to decimal numbers is often needed in firmware. And it’s done easily enough if multiplication and division by ten are acceptable. However, these operations, especially division, ...
Microcontroller firmware usuallydeals with hexadecimal code. Yousometimes need to display the contentof registers, which requires a hexadecimal-to-BCD (binary-coded-decimal)-code conversion. The ...
These represent the place values in binary. Next, copy the binary number into the row below... It is good practise to add a subscript to numbers to show which base you are using. To improve ...