Given some x, return the number rounded to some number of digits.

round2(x, at)

Arguments

x

A number or vector of numbers

at

Numeric. Rounding factor or size of the bin to round to.

Value

A number or vector of numbers