SyntaxFix
Write A Post
Hire A Developer
Questions
This will work:
decimal source = 2.4200m; string output = ((double)source).ToString();
Or if your initial value is string:
string
string source = "2.4200"; string output = double.Parse(source).ToString();
Pay attention to this comment.