Thread: Decimal check
View Single Post
Old November 25th, 2004, 11:12 AM
Nitin_sharma Nitin_sharma is offline
Authorized User
Join Date: Sep 2004
Location: West Midlands, , United Kingdom.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Nitin_sharma Send a message via Yahoo to Nitin_sharma
Default Decimal check

Hi Guys,
Can anyone pls tell me how can I check if the number input by user is decimal if it is then it should only be upto 2 decimal places.

I can check if it is decimal by isdecimal() but how can I check the number of digits from decimal point.

Any help would be very much appreciate.