Search
 
SCRIPT & CODE EXAMPLE
 

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)]
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get count from unknown list 
Csharp :: Compiling C# Example 
Csharp :: c# inline 
Csharp :: Query Parent-GrandChild single 
Csharp :: wpf open new Window in MVVM 
Csharp :: how to split a string in f# 
Csharp :: unity recttransform set anchor 
Csharp :: cannot access file being used by another process create file 
Csharp :: what is string args in c# 
Csharp :: photon2 what is a stream 
Csharp :: how to set window position 
Csharp :: c# return default "" if null 
Csharp :: c# string split by length 
Csharp :: get position of gameobject unity 
Csharp :: c# windows service .net core 
Csharp :: rating iOS game in unity 
Csharp :: linq where c# 
Csharp :: compile c# file in terminal 
Csharp :: c# resize image from byte array 
Csharp :: IExtensionApplication autocad 
Csharp :: how to show error xtramessagebox in devexpress c# 
Html :: fevicon 
Html :: default html template 
Html :: bootstrap 4 cdn 
Html :: textarea placeholder css 
Html :: tabulation html 
Html :: mirror html video element 
Html :: bootstrap large modal 
Html :: center iframe 
Html :: google web fonts open sans 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =