• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to Validate a String for decimal number in java script ?  RSS feed

 
chiranjib das
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody provide me a java code or java script code for validating a String for decimal number ? Basically, There is a String for Money related stuff , i want to validate it whether its a decimal number or not
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hint: regular expression or indexOf

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!