Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/stories/pert_calculator.rb

Instance Method Summary collapse

Instance Method Details

#round_to(x) ⇒ Object



2
3
4
# File 'lib/artisan/stories/pert_calculator.rb', line 2

def round_to(x)
  (self/x).round * x
end