Sub RoundOf (Iinput)' My own sub to handle bug of Round (10.5) = 10
'BUG SOURCE: Only works till 2 dp
DecimalPart = 100 * (Iinput - Int(Iinput))
If DecimalPart >= 45 Then
Return Int(Iinput)+ 1
Else
Return Int(Iinput)
End If
End Sub
Sub RoundEx(Num, Prec)
FracPart = Frac(Num) * Prec
Temp = Frac(FracPart)
FracPart = Int(FracPart)
If Temp >= 0.5 Then FracPart = FracPart +1
If Temp <= -0.5 Then FracPart = FracPart -1
Return Int(Num) + FracPart / Prec
End Sub
Sub Frac(Num)
Return Num - Int(Num)
End Sub