Subscribe: Comments on My SysAd Blog -- Unix: Convert Decimal to Hexadecimal, Octal or Binary us...
http://www.mysysad.com/feeds/7129750893052141403/comments/default
Preview: Comments on My SysAd Blog -- Unix: Convert Decimal to Hexadecimal, Octal or Binary us...

Comments on My SysAd Blog -- Unix: Convert Decimal to Hexadecimal, Octal or Binary using typeset





Updated: 2017-08-10T07:44:05.379-07:00

 



Great, you can also tell bc the input number base...

2015-09-01T06:04:37.388-07:00

Great,

you can also tell bc the input number base:

echo 'ibase=2;obase=16;1100' | bc

echoes 'c'



for some of you looking for an online converter, c...

2010-03-31T01:02:37.540-07:00

for some of you looking for an online converter, check this good hex to decimal converter
Pretty good!
Enjoy!
David



You could use normal ksh93 math constructs instead...

2007-05-31T14:59:00.000-07:00

You could use normal ksh93 math constructs instead of "typeset", for example via:
$ print -- $(( 2#0101 + 4#0303 ))
56