Method: RchartHelper#round_of

Defined in:
lib/rchart_helper.rb

#round_of(no, n = 0) ⇒ Object

round of particular decimal



204
205
206
# File 'lib/rchart_helper.rb', line 204

def round_of(no,n=0)
  (no * (10.0 ** n)).round * (10.0 ** (-n))
end