Delete bin/base

qalc already has base conversion
This commit is contained in:
Henrik Lissner 2020-01-12 18:17:53 -05:00
parent 2f9d07bf1e
commit 3f4eba408e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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"