Hello,
I have this (row and count are parameters):
(int)Math.Round(count / (decimal)rows, MidpointRounding.AwayFromZero)
if the result is 1.2, I'd lire return 2; 5.6 ---> 6; 79.9 ---> 80; 85.01 ---> 86
All the time the unit above, an int, not decimal.
An idea ?
Thanks,