c# annotation decimal code example Example: asp.net data annotations double [RegularExpression(@"^\d+\.\d{0,2}$")] --> Mostra apenas 2 casas decimais