Delete bin/base
qalc already has base conversion
This commit is contained in:
parent
2f9d07bf1e
commit
3f4eba408e
12
bin/base
12
bin/base
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Converts a number from one base to another. DEST_RADIX is optional and
|
|
||||||
# defaults to 10.
|
|
||||||
#
|
|
||||||
# Usage: base SRC_RADIX NUMBER DEST_RADIX
|
|
||||||
# Examples:
|
|
||||||
# + base 2 110 #=> 6 (110_2 => 6_10)
|
|
||||||
# + base 10 9 8 #=> 11 (9_10 => 11_8)
|
|
||||||
# + base 16 FF #=> 255 (FF_16 => 255_10)
|
|
||||||
|
|
||||||
bc <<< "obase=${3:-10};ibase=$1;$2"
|
|
Loading…
Reference in a new issue