I am struggling to convert an exponential number to the equivalent decimal value. ie. 2e2 to 200 or 12e-1 to 1.2
Any help would be much appreciated, even if just a push in the right direction.
If you have "2e2" as a string, then read the characters up to but excluding the 'e' as an integer B.
Then if the integer E to the right of the 'e' is positive, multiply B by 10 E times. If the integer E
to the right of the 'e' is negative, divide B by 10 E times (ensuring to use floating point arithmetic).