示例#1
0
 /// <summary>
 /// This method expose the use of the class.
 /// Supply the number  to be converted and the currency extension of your choice
 /// </summary>
 /// <param name="input">Value to be converterd e.g 5023</param>
 /// <param name="separator">Currency extensions of your choice e.g Dollar </param>
 /// <returns></returns>
 public static string Convert(string input, string separator = "point")
 {
     return(WordConverter.GetNumberConverter(input, separator));
 }
示例#2
0
 /// <summary>
 /// This method expose the use of the class.
 /// Supply the number  to be converted and the currency extension of your choice
 /// </summary>
 /// <param name="input">Value to be converterd e.g 5023</param>
 /// <param name="separator">Currency extensions of your choice e.g Dollar </param>
 /// <returns></returns>
 public static string Convert(decimal input, string separator = "point")
 {
     return(WordConverter.GetNumberConverter(input.ToString(), separator));
 }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="input">Value to be converterd e.g 5023</param>
 /// <param name="currency">Currency extensions of your choice e.g Dollar </param>
 /// <param name="unit"> currency extension e.g kobo or cent </param>
 /// <returns></returns>
 public static string CurrencyFormat(string input, string currency = "Naira", string unit = "Kobo")
 {
     return(WordConverter.ConverterToCurrency(input, currency, unit));
 }