LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-22-2006, 08:46 AM
Rantanplan's Avatar
Rantanplan Rantanplan is offline
Registered User
 
Join Date: Nov 2004
Location: Lisboa, Portugal
Posts: 301
Rep Power: 9
Rantanplan is on a distinguished road
Question Converting a string into a number var

Hi all,

I'm having some trouble converting strings into numbers.
Mostly, when I convert an integer (be it a var or an array element) into a number it works out just fine, but if I try to convert a decimal number (ex.: "5.25") it always returns NaN.

Is there a way to grab a decimal number out of a string?

Cheers,
__________________
Every problem is an opportunity in disguise!
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easeout rollover problem skyyobx Actionscript 2.0 2 03-20-2009 11:30 AM
Which Components Should Best Work For This Maniky80 Flash CS3 / Flash 9 2 10-26-2008 06:03 AM
RegExp Class dv8 Flash MX 2004 22 05-13-2007 12:25 PM
add enemies to "Jungle Adventure" Annieberry Game Programming 7 02-03-2007 03:30 PM
I need some help zig_man Newbies 0 04-11-2005 02:17 AM




All times are GMT. The time now is 11:59 AM.