update readme
[baseconv.git] / README.md
1 ## dc branch
2
3 Using the dc-based branch might be beneficial for systems where `bc` is a `dc` wrapper, `printf` command does not support base conversion, etc.
4
5 In short, it should be even more portable.
6
7 ## Usage
8
9 ### tohex
10
11 * `-l` - output numbers with lowercase characters
12 * `-m` - output only the converted numbers
13 * `-n` - output all in a single line (space-separated with `-m`, semicolon as the separator otherwise)
14 * `-p` - add `0x` prefix to the resulting numbers
15
16 ### tobin
17
18 * `-m` - output only the converted numbers
19 * `-n` - output all in a single line (space-separated with `-m`, semicolon as the separator otherwise)
20 * `-p` - add `0b` prefix to the resulting numbers
21
22 ### todec
23
24 * `-m` - output only the converted numbers
25 * `-n` - output all in a single line (space-separated with `-m`, semicolon as the separator otherwise)
26 * `-K` - convert the results into _K_ units (2^10^)
27 * `-M` - convert the results into _M_ units (2^20^)
28 * `-G` - convert the results into _G_ units (2^30^)