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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ParseFloat

Status
Not open for further replies.

wsmall73

Programmer
May 23, 2002
261
US
I am using ParseFloat to convert a string to a decimal however... 12..87 and 12.97... pass this validations... any ideas to get around this...
 

Do you want to remove the trailing decimal places? If so, use "parseInt('12.97', 10);" instead.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top