APIdock / Ruby
/
method

round

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

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

# File lib/matrix.rb, line 1761
 def round(ndigits=0)
 map{|e| e.round(ndigits)}
 end

AltStyle によって変換されたページ (->オリジナル) /