Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hex to decimal
#1
Hi, 

Is there a function that converts hex to decimal?

e.g:
400 to 1024

I need to convert the value of VB to decimal, like below 

&H400

Is there a better way? 

Thanks in advance for any advice and help
david
#2
Macro Macro3246
Code:
Copy      Help
str s="&H40A"
int i=strtol(s+2 0 16)
out i
#3
thank you so much


Forum Jump:


Users browsing this thread: 1 Guest(s)