PDA

View Full Version : string to float



Traveler
17-06-2011, 08:56 PM
Hey guys,

I'm trying to convert a string value to a float, but I'm having some difficulty. Specifically with values like "2.22044604925031e-014". When I try to use floatToStr it returns an invalid float value.

Surely, there must be an easy answer for this, right?

Thanks,

Traveler
17-06-2011, 09:06 PM
Nevermind, the decimal character was to blame. It works now.