.net - NumberFormatInfo to format string -
Does any number (or currency) format know how to get the string (like "###, ### , ## 0.00) From the .NET NumberFormatInfo class? My research says so far that it should be made manually with the Noformat Info class, but it seems strange to me that Microsoft (or anyone else) has for this purpose Nothing written, so far.
Try it:
Var number = System.Globalization.CultureIn Fo CurrentCulture.NumberFormat; String format = string.format ("{0} {1} {2}", String.joined (number number group checker number, number group size. Select (group => new string ('# ', Group)), Number.NumberDecimalSeparator, new string (' 0 ', number.NumberDecimalDigits));
Comments
Post a Comment