[Javascript] Force String to Float?

tedd tedd at sperling.com
Tue May 15 10:34:52 CDT 2007


At 7:35 AM -0500 5/15/07, Triche Osborne wrote:
>tedd wrote:
>>At 2:30 AM +0100 5/15/07, Matt Warden wrote:
>>>On 5/15/07, tedd <tedd at sperling.com> wrote:
>>>>So, how do I force a string to a float?
>>>
>>>parseFloat(...)
>>
>>
>>I tried that, but found it problematic.
>>
>
>Problematic? How so? It's core JS. What sort of problem have you 
>encountered with it?
>
>Triche

Well... it was problematic for me in trying to convert a string into 
a float. I'm sure it was my mistake -- I'm dyslexic. Taking a string 
* 1 seems much more straightforward and easier for me to comprehend. 
But, I'll try it again.

Thanks,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list