- Image by Getty Images via Daylife
There is a calculator called bc that works in the command line. So if you need a quick calculator function in the command line then you could write some functions that will do the trcik for you. Here is an example:
function convBase { echo \"ibase=$1; obase=$2; $3\" | bc; }
so, if you want to convert decimal number to hex number then you could type
convBase 10 16 16
Related articles by Zemanta
- Binary thinking (beingpeterkim.com)
- The Real Reason You Got Back So Much Hard Drive Space With Snow Leopard [Apple] (gizmodo.com)
- ErrorNow.com – Common Errors When Typing URLs (killerstartups.com)
Link to this post!
Hi guys,
You can use an online tool to convert decimal to binary
Pretty Good One!
David
Hi guys,
You can use an online tool to convert decimal to binary
Pretty Good One!
David
why would you keep going to online pages when you can do so without leaving your command line 🙂