Essay record
Java: Convert Hexadecimal String to Decimal Integer
- Record
- Essay / / 1 min read / 61 words
- Tags
- Unfiled
DISCLOSURE: Some links may be affiliate links. Details
**Objective: **Convert a string of hexadecimal ASCII characters to decimal integer.
My code:
(https://gist.github.com/SIRHAMY/8627320)**Logic: **Go through the string, determining what value to subtract from the character’s value. After reducing the character to its int value, determine the scalar to multiply it by to convert to decimal. Add this number to the final value.