README.md

December 5, 2022 ยท View on GitHub

A Fast Hex 2 Decimal Conversion

Description

Simple way to convert Hex to Dec in one line of code. This code is for Beginners.

More Info

The Hex to Dec conversion gives an error if greater val than the MAX value of a long integer.

(2,147,483,647) (&H7FFFFFFF)

Submitted On
ByBilly Conner
LevelAdvanced
User Rating3.3 (13 globes from 4 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryMath/ Dates
WorldVisual Basic
Archive File

Source Code

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