Al Programming
Free source code programming in C#, VB.Net, Java, SQL
Search This Blog
Monday, December 5, 2016
Trailing zero numeric format string C#
C# >
ToString
Examples:
1. Trailing zero numeric format string C#
"N" or "n" is for number.
double
num = 4.2;
string
result = num.ToString(
"N2"
);
// "4.20"
Newer Post
Older Post
Home