News
For the 17 shown in the second example above, recall that the first digit (1) has a decimal value of 8 and the second (7) a value of 7. Therefore, the octal result is equal to decimal 15.
Learn how to use Windows Calculator to convert Decimal to Binary in Windows 11/10. You have to use the Programmer mode to do this.
$ printf "octal: %o\nhex: %x\n" 42 42 octal: 52 hex: 2a Because of the notational convention mentioned earlier for non-decimal numbers in the shell, you also can specify an octal or hexadecimal value ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results