Method: Toji::Recipe::Step#round

Defined in:
lib/toji/recipe/step.rb

#round(ndigit = 0, mini_ndigit = nil, half: :up) ⇒ Object



143
144
145
146
147
148
# File 'lib/toji/recipe/step.rb', line 143

def round(ndigit=0, mini_ndigit=nil, half: :up)
  Utils.check_dup(self)

  dst = self.dup
  dst.round!(ndigit, mini_ndigit, half: half)
end