round To Granularity
This function does not check if the supplied value is within the specified bounds. Thus, the returned value may be infeasible with respect to bounds.
Return
the rounded value
Parameters
x
the input value to round to the specified granularity