Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

validate int have 3 digits c#

int X = 9;

string PaddedResult = X.ToString().PadLeft (3, '0'); // results in 009
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #int #digits
ADD COMMENT
Topic
Name
5+6 =