c# - Separate long numbers by 3 digits -


Is there an easy way to replace 1,000,000 in 1,000,000? A regex or string format in Asp.net, C #

You ToString With a formatting string and a provider provider that '.' Uses a group as a separator and defines that the numbers should be grouped into a 3-digit group (which is not for all cultures):

  int numbers = 1000000; Console.light line (number truftring ("N0", new number formatted info) {NumberGroupSizes = new [] {3}, number group aspirator = "."})));  

Comments