Discerning Precision of Numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Can I have advice on the best method to discern the precision of numbers in
a text box? My objective is to be able to validate numeric entries in a text
box and provide an error message when the precision is not according to
business rules. For example, a business rule for one text box may be that the
user must enter whole numbers only. For another text box, they can enter
whole numbers or one number to the right of the decimal point. Thus 4, 4.3,
and .5 are valid entries and 4.33 is not a valid entry.

I'd like to stay away from recognizing periods or commas so process stays
cultural neutral (if possible).

Thanks in advance!
Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top