Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# string format sepperate every thousand

var nfi = (NumberFormatInfo)CultureInfo.InvariantCulture.NumberFormat.Clone();
nfi.NumberGroupSeparator = " ";
string formatted = 1234897.11m.ToString("#,0.00", nfi); // "1 234 897.11"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #format #sepperate #thousand
ADD COMMENT
Topic
Name
5+4 =