Check out example codes for "C# string format sepperate every thousand". It will help you in understanding the concepts better.

Code Example 1

var nfi = (NumberFormatInfo)CultureInfo.InvariantCulture.NumberFormat.Clone();
nfi.NumberGroupSeparator = " ";
string formatted = 1234897.11m.ToString("#,0.00", nfi); // "1 234 897.11"

Learn ReactJs, React Native from akashmittal.com