method

round

ruby latest stable - Class: Vector
round(ndigits=0)
public

Returns a vector with entries rounded to the given precision (see Float#round)