Proper rounding of values

round2(val, dps)

Arguments

val

numeric value to round

dps

numeric, number of decimal places

Details

function taken from this link (https://stackoverflow.com/questions/12688717/round-up-from-5)