Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conversion from string to int 1

Status
Not open for further replies.

arunjp

Programmer
Jan 10, 2001
29
US
How to convert string to int in Javascript. Is there any method for doing that.
AJP
 
there are three that I am familiar with, assuming x is a string:

x=window.parseInt(x)

||

x=new Number(x)

||

x=x/1
jared@aauser.com -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top