by Billy Conner (7 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
Simple way to convert Hex to Dec in one line of code. This code is for Beginners.
Assumes
The Hex to Dec conversion gives an error if greater val than the MAX value of a long integer.
(2,147,483,647) (&H7FFFFFFF)
MYHEX$ = "7FFFFFFF"
Mydec& = Val("&H" & MYHEX$)