Corrected string to number conversion to not lose decimals