VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Fast Hex 2 Decimal Conversion

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)

Rate A Fast Hex 2 Decimal Conversion

MYHEX$ = "7FFFFFFF"
Mydec& = Val("&H" & MYHEX$)

Download this snippet    Add to My Saved Code

A Fast Hex 2 Decimal Conversion Comments

No comments have been posted about A Fast Hex 2 Decimal Conversion. Why not be the first to post a comment about A Fast Hex 2 Decimal Conversion.

Post your comment

Subject:
Message:
0/1000 characters