I am trying to convert Numbers into Indian Currency format.
public static string ConvertStringToRupee(string Amount)
{
float num = float.Parse(Amount);
NumberFormatInfo provider = new NumberFormatInfo
{
CurrencyGroupSeparator = ",",
CurrencyGroupSizes = new int[] { 3, 2 },
CurrencySymbol = ""
};
return num.ToString("N", provider);
}
It's perfect for 5 digit. If it is exceeding, it takes three digit. For example it shows 3,345,507.00 instead of 33,45,507.00. But I need 33,45,507.00.