preCharge Forums - View Single Post - Get first number
View Single Post
Old 04-07-2008   #2 (permalink)
vn4000
Junior Member
 
Join Date: Apr 2008
Posts: 12
Default Re: Get first number

Try convert number to string, for example a = a+ ' ' with a = 2674.
After that use substring method, for example a.substring(0,1)
And convert it to number by parseInt/ parseFloat
Hope that help.
vn4000 is offline   Reply With Quote

 
Mobile Phones | Mortgage Loans | Free Ringtones | Free Myspace Layouts | Anime Episodes