Step 1. download this class file
MultiCurrency.cs
Step 2. Paste To your Project
Step 3.Use this code where you need to convert
MultiCurrency currenc = new MultiCurrency(Criteria.Indian); \\Set here currency type
string number = "123.45"\\Your amount set here
string[] ss = number.Split('.');
if (ss.Length == 1)
{
number = number + ".00";
}
string[] amount = number.Split('.');
string AmountInWords = currenc.ConvertToWord(amount[0]);
string paises;
AmountInWords = AmountInWords + " Rupees";
if (int.Parse(amount[1]) == 0)
{
amount[1] = "00";
paises = "";
}
else
{
paises = currenc.ConvertToWord(amount[1]);
paises = " And " + paises + " Paises";
}
AmountInWords =AmountInWords +paises ;
Step 2. Paste To your Project
Step 3.Use this code where you need to convert
MultiCurrency currenc = new MultiCurrency(Criteria.Indian); \\Set here currency type
string number = "123.45"\\Your amount set here
string[] ss = number.Split('.');
if (ss.Length == 1)
{
number = number + ".00";
}
string[] amount = number.Split('.');
string AmountInWords = currenc.ConvertToWord(amount[0]);
string paises;
AmountInWords = AmountInWords + " Rupees";
if (int.Parse(amount[1]) == 0)
{
amount[1] = "00";
paises = "";
}
else
{
paises = currenc.ConvertToWord(amount[1]);
paises = " And " + paises + " Paises";
}
AmountInWords =AmountInWords +paises ;
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. convert money online
ReplyDelete