Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to validate decimal number with percision of (25, 4) iin c#

Two Decimal Points
[RegularExpression(@"^d+(.d{1,2})?$")]
This regular expression will make sure that the property has at most two decimal places.

Max 18 digits
[Range(0, 9999999999999999.99)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #decimal #number #percision #iin
ADD COMMENT
Topic
Name
2+1 =