This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to Validate a String for decimal number in java script ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to Validate a String for decimal number in java script ?" Watch "how to Validate a String for decimal number in java script ?" New topic
Author

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

chiranjib das
Greenhorn

Joined: Aug 04, 2003
Posts: 3
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

Joined: Nov 08, 2001
Posts: 15385
    
    6
hint: regular expression or indexOf

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Validate a String for decimal number in java script ?
 
jQuery in Action, 3rd edition