how to convert number to text currency in C#
Somnetimes we will get a requirement like converting a number into words. such as: 568.25 = Five Hundred Sixty Eight and Paisa Twenty Five Only. Create a converter class with that code: Example:568.25 = Five Hundred Sixty Eight Only.568.25 = Five Hundred Sixty Eight and Paisa Twenty Five Only. [code lang=”js”]public class converter{static Tuple<int, string>[] powers ={new Tuple<int, string>(0, “”),new Tuple<int, string>(3, […]
Recent Comments