.0001 + .0001 = 2.0e-4

CSP

Member
Licensed User
Longtime User
I apologize in advance, I'm sure this is covered somewhere although I couldn't figure it out and I really need the help as my brain is frazzled.

I finally have the logic of a calculator program working, hence the frazzled mind, but now I cannot figure out how to convert decimals over 3 places into an actual number.

Such as: .0001 + .0001 = 2.0E-4 instead of equaling .0002

However, .001 + .001 does = .002

Is there a way to simplify the result without dissecting the string and manually setting the decimal places?

Thanks greatly for any help.
 
Top