how to convert rupees to alphabets asp.net ? I have tried the below code but didn't work. var formatted = d.ToString();
if (formatted.Contains("."))
{
//If it contains a decimal point, split it into both sides of the decimal
string[] sides = formatted.Split(".");
//Process each side and append them with "and", "dot" or "point" etc.
return NumberToWords(Int32.Parse(sides[0])) + " and " + NumberToWords(Int32.Parse(sides[1]));
}
else
{
//Else process as normal
return NumberToWords(Convert.ToInt32(d));
}
Note :I need in the below format
eg :23,234.50 - twenty three thousand two thirty four rupees and 50 paise.