Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Force String to Float?


  • From: tedd at sperling.com (tedd)
  • Subject: [Javascript] Force String to Float?
  • Date: Tue May 15 10:35:23 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@xxxxxxxxxxxx> 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