0

I have an Oraclize call that returns the following (a string):

"00000000000000000000000000000000000000000000000000000000000003e8"

Now this is 1000 (bytes32 hex)

You can check here: https://www.rapidtables.com/convert/number/hex-to-decimal.html

Now the question is how do I read/convert this to 1000 in solidity?

1 Answer 1

1

This answer may be what your looking for, it converts a hex string into bytes and gets the decimal value. Let me know if I understood your question wrong.

https://ethereum.stackexchange.com/a/40247/33496

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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