I want to round up always in c#, so for example, from 6.88 to 7, from 1.02 to 2, etc.
How can I do that?
Use Math.Ceiling()
Math.Ceiling()
double result = Math.Ceiling(1.02);
2.1m questions
2.1m answers
60 comments
57.0k users