Check out example codes for "asp.net data annotations double". It will help you in understanding the concepts better.

Code Example 1

[RegularExpression(@"^\d+\.\d{0,2}$")]  --> Mostra apenas 2 casas decimais

Learn ReactJs, React Native from akashmittal.com