You can also use string.Format()
Code:string.Format("Value: {0:F4}", unitPrice);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Convert double to 4 decimalThreaded View
|
Click Here to Expand Forum to Full Width |