|
-
July 10th, 2000, 08:19 AM
#1
HEX2DEC
Hi,
who knows a fast and easy way to convert a hex number into a decimal number.
-
July 10th, 2000, 10:02 AM
#2
Re: HEX2DEC
use VAL but make sure that your number is prefixed by "&H"
ie
dim Hexnumber,decnumber
hexnumber=hex(15)
decnumber=val(hexnumber)
'this will return 0
'but if you do this
hexnumber="&H" & hexnumber
decnumber=val(hexnumber)
'this will return 15
Hope this helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|