Jun 25, 2004 #1 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...
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...
Jun 25, 2004 #2 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB Do you want to remove the trailing decimal places? If so, use "parseInt('12.97', 10);" instead. Hope this helps, Dan Upvote 0 Downvote
Do you want to remove the trailing decimal places? If so, use "parseInt('12.97', 10);" instead. Hope this helps, Dan