Library/Solution for Hex to decimal conversion?

Hi all

I have a hex data " 32CA" i need to convert it to decimal to get 13002. Is there a function to conveert Hex to Decimal?

Thanks n regards

Matt

Hi there,

have a look at
Convert Integer to HEX string - the solution there has both directions of conversions

Best regards

Hi Michael

I saw this but there only Dec to Hex is seen.

Regards

matt

Hi,

it’s only a test implementation (task not library & no nice code, they’re more efficient ways to realize it), but nevertheless I share it :wink:

hex2dec.zip (1.4 KB)

If you want to try it, you have to add the AsMath library (because of the usage of pow() function).

Best regards!

3 Likes

Sorry I looked at the wrong thing.