Method: XlsFunction::Evaluators::Functions::Fixed#round
- Defined in:
- lib/xls_function/evaluators/functions/fixed.rb
#round ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/xls_function/evaluators/functions/fixed.rb', line 25 def round n = number.round(digits) if digits.positive? n.to_f else n.to_i end end |