I want to convert a string into a hex value without the quotations. So for example I have:
s='0x'
r='01'
sr=s+r
//when I print sr it gives me '0x01'
what I want to do is to convert it in hex value by getting rid of the quotations and just having value as 0x01.
Is there function which converts a string or another type of value in Hex without the quotations in there. Meaning it gives me just the value no string representation of hex.
s='0x'
r='01'
sr=s+r
//when I print sr it gives me '0x01'
what I want to do is to convert it in hex value by getting rid of the quotations and just having value as 0x01.
Is there function which converts a string or another type of value in Hex without the quotations in there. Meaning it gives me just the value no string representation of hex.