-->
Page 1 of 1

Hex byte to Decimal function

PostPosted: Sun Jan 03, 2016 8:54 am
by AndyGadget
I'd like to see the opposite of the HEX function. i.e. to convert a hex value to a decimal value.
I've done this in my cheerlights program with a bit of string fiddling, but a single command would be greatly appreciated.

Re: Hex byte to Decimal function

PostPosted: Sun Jan 03, 2016 2:42 pm
by Mmiscool
Just did a new build including the
hextoint() function.

It takes a hex string and converts it to a decimal value

example:
Code: Select allprint hextoint("FF)

Re: Hex byte to Decimal function

PostPosted: Sun Jan 03, 2016 4:31 pm
by AndyGadget
That was quick - Works a treat!
Thanks Mike.

(Posting updated version of Cheerlights project)