Binary Math Hacks
A Binary Math illustrative application using HTML, Liquid, and JavaScript.
Plus | Binary | Octal | Hexadecimal | Decimal | Bits | Character | Minus |
---|---|---|---|---|---|---|---|
00000000 | 0 | 0 | 0 | 8 | EMPTY |
To generate the ASCII characters above when changing the binary string, we are using JavaScript. The code essentially first converts the binary string into an integer string. Then, a variable "chr" (for character) is defined and the line uses the String.fromCharCode function to convert the integer ASCII code into a readable character as shown above.