Use a regex validator instead and validate for ^([0-9](\.{0,1})([0-9]{0,4}))$ If you are storing 4 dp in the database, then your users may want to see all four at some point, so you might want to use a decimal datatype in .net and have some sort of formatting function for the front end.