Round results. Add boundary and type checks.