SyntaxFix
Write A Post
Hire A Developer
Questions
Use ToString() with this format:
ToString()
12345.678901.ToString("0.0000"); // outputs 12345.6789 12345.0.ToString("0.0000"); // outputs 12345.0000
Put as much zero as necessary at the end of the format.