Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a lot of 32-bit numbers in hexadecimal symbolized as they are in C (for example, 0x1230abde). How can easily read these in Mathematica?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

How about:

data = {"0x1", "0xff", "0x1230abde"};
FromDigits[StringTrim[#, "0x"], 16] & /@ data

{1, 255, 305179614}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.