How would I format a number to two decimals. For example 1.1 would be displayed to 1.10. Thanks.
Printable View
How would I format a number to two decimals. For example 1.1 would be displayed to 1.10. Thanks.
One way
Code:float f = 1.1f;
MessageBox.Show(f.ToString("0.00"));