Dim number = 5.678 Console.WriteLine(number.ToString("#,##0.##"))
displays 5.68. Is there any number format string without rounding it?
5.68
UPDATE: desired result is 5.67
5.67
Console.Write(Math.Truncate(number * 100) / 100);
This should work. Read more answers here
1.4m articles
1.4m replys
5 comments
57.0k users