merge readme dc
authorgit <redacted>
Sat, 16 May 2026 06:09:20 +0000 (02:09 -0400)
committergit <redacted>
Sat, 16 May 2026 06:09:20 +0000 (02:09 -0400)
README.md

index f96d6a6a1afcfaa113cfa7dc5aec04da6dfc98ed..04ed88e33f4efadd57397f42812c6830babf1309 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,20 +1,28 @@
-##tohex
+## dc branch
+
+Using the dc-based branch might be beneficial for systems where `bc` is a `dc` wrapper, `printf` command does not support base conversion, etc.
+
+In short, it should be even more portable.
+
+## Usage
+
+### tohex
 
  * `-l` - output numbers with lowercase characters
  * `-m` - output only the converted numbers
- * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
- * `-p` - add `0x` prefix to the result
+ * `-n` - output all in a single line (space-separated with `-m`, semicolon as the separator otherwise)
+ * `-p` - add `0x` prefix to the resulting numbers
 
-##tobin
+##tobin
 
  * `-m` - output only the converted numbers
- * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
- * `-p` - add `0b` prefix to the result
+ * `-n` - output all in a single line (space-separated with `-m`, semicolon as the separator otherwise)
+ * `-p` - add `0b` prefix to the resulting numbers
 
-##todec
+##todec
 
  * `-m` - output only the converted numbers
- * `-n` - output a single line (space-separated with `-m`, semicolon as the separator otherwise)
- * `-K` - divide the result by *1024* and append `K` to the result
- * `-M` - divide the result by *1,048,576* and append `M` to the result
- * `-G` - divide the result by *1,073,741,824* and append `G` to the result
+ * `-n` - output all in a single line (space-separated with `-m`, semicolon as the separator otherwise)
+ * `-K` - convert the results into _K_ units (2^10^)
+ * `-M` - convert the results into _M_ units (2^20^)
+ * `-G` - convert the results into _G_ units (2^30^)