To convert a numeric value, or anything else for that matter, to a String, you call its ToString method. In the case of numeric types, you can pass a standard or custom format specifier to have the output formatted a particular way. To format a number as currency using the current culture, the format specifier is "c":
Console.WriteLine(myNumber.ToString("c"));
If you want to incorporate additional text then you can use the format specifier a slightly different way:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.