I'm rounding up my decimal values to integer values ex:
I have 5 numbers whose % sum should end up being 100% but i get 101% my values are
11.11111, 80.55555, 5.55555, 2.77777
and on rounding them i get
11, 81, 6, 3 => 101
In above for example 5.555556 rounds up to 6 (correct value) but is screwing up my total for percentage which is going above 100 when i round and add numbers. How can i force or change round function to give desired value? I'm using
round(100 * (x1/sum) )
My output on webpage is like: (i want to display % rounded up to int)
field value %
x 8 11
y 58 81
Is this not possible?
Note: I'm using asp round function - updated