|
-
Mar 28th, 2002, 08:06 AM
#1
Thread Starter
Addicted Member
JavaScript toFloat
Is there a JavaScript function that converts a String to a float or int?
-
Mar 28th, 2002, 09:09 AM
#2
Fanatic Member
num = parseInt('12')
num = parseFloat('12.12')
...should do the trick
-
Mar 28th, 2002, 09:26 AM
#3
Thread Starter
Addicted Member
thanks, exactly what I needed!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|