0
How should I round up a number in c#?
I tried number += (1 - ( number % 1 )) ; But doesnt work for whole numbers.
1 Antwort
+ 2
Smart logic..
BTW for whole numbers means how? Can give example?
Is you want it without use of round, ceil functions..?
Math.Ceiling (number) ; //rounds up value....