Dịch chuyển đổi từ hex sang dec convert from hex to dec


minhtham

Recommended Posts

That depends.  Is 3D what appears in the monitor as a hex value, or is it an ASCII representation of the letters "3" and "D" which corresponds to the hex value 3D?  If the first, then there is no conversion.  Hex and decimal are just two different ways of representing the same number.  If the second and its a string with 2 characters, then you can use evaluate with "0x" prepended:

evaluate("0x" + hexstring)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.