summaryrefslogtreecommitdiff
path: root/man/man1/radix.1
blob: 43d70d49803ae8e4099c2f4249da709d0ff5da85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.TH pf 1 2023-05-13 utils

.SH NAME
radix \- compute the digits of a number in a different base

.SH SYNOPSIS
.B radix
.I base decimal

.SH DESCRIPTION
.B radix
is an easy and convenient way to convert decimal numbers
into many other bases, like octal, dozenal, or hexadecimal.

It is implemented in
.BR bc (1),
which puts a system dependent limit on the bases.
It also only accepts integer bases.
.B radix
itself has a limit of base 36, using Latin letters for digits greater than or equal to ten.

For base 12 it uses the glyphs suggested by the British Dozenal Society which are acutally part of
.BR unicode (7).
(The American Dozenal Society suggests using homoglyphs of X and E for ten and eleven, respectively, instead.)

.SH EXAMPLES
.B radix
.I 12 144

.SH SEE ALSO
.BR bc (1)