Java: Convert Hexadecimal String to Decimal Integer
Date: 2014-01-25 |
**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.
Want more like this?
The best / easiest way to support my work is by subscribing for future updates and sharing with your network.