I have no experience with this. Normally, for simple integers, you take the first digit, add it to the result, then, if more digits, you shift the result by 10, and keep adding.
Once you reach the decimal point, you could "simply" invert the remainder of the string (up to the exponent) and do...