Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimal to Hex 2

Status
Not open for further replies.

sacsac

Programmer
Dec 10, 2000
182
GB
I know that it's easy to convert a decimal value to Hex using:

HexValue = Hex(DecimalValue)

That's fine, until I have a very large decimal value like:

123456789877754 (which is basically of DataType Variant, with a CDec conversion)

This causes an overflow when trying to convert to Hex.

I've trawled through various threads, which seem to mainly deal with the issues of Hex to Decimal (and which I have under control!)

Any ideas?
 
(although it should now become clearer why I went with a version that didn't require maths ...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top