frac= ((posn1+posn2)//100 +10)/10 ;round it up
is incorrect , it will round the number up always

frac= ((posn1+posn2)//100 +5)/10 ;round it up
is the way to round the number up if the last digit is 5 or more