updated reverseToDecimalFormat. Working perfectly.