or parseFloat() for floating point numbers. Scott
-----Original Message----- From: [EMAIL PROTECTED] on behalf of Thomas Fowler Sent: Mon 5/8/2006 8:24 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] Casting a string to a number ... parseInt is the preferred way to get a number from a string. On 5/8/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote: > > You can use parseInt > > number = parseInt(string); > > -- > Ramon Miguel M. Tayag > Managing Director > Quirkworks > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com