Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hex to decimal conversion in common lisp

Is there an easy helper function in common lisp to convert from hex to decimal?

like image 859
Mike2012 Avatar asked Oct 02 '09 21:10

Mike2012


2 Answers

(parse-integer "ff" :radix 16)
like image 95
newacct Avatar answered Nov 08 '22 15:11

newacct


Never mind #xff = 255.....

like image 33
Mike2012 Avatar answered Nov 08 '22 13:11

Mike2012



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!