Flowdock
method

round_without_significant

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: RoundingHelper
round_without_significant(number) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/number_helper/rounding_helper.rb, line 28
        def round_without_significant(number)
          number = number.round(precision)
          number = number.to_i if precision == 0 && number.finite?
          number = number.abs if number.zero? # prevent showing negative zeros
          number
        end
Register or log in to add new notes.