def to_human
      Incline::Extensions::Numeric::SHORT_SCALE.each do |(num,label)|
        if self >= num
          # Add 0.0001 to the value before rounding it off.
          # This way we're telling the system that we want it to round up instead of round to even.
          s = ('%.2f' % ((self.to_f / num) + 0.0001)).gsub(/\.?0+\z/,'')
          return "#{s} #{label}"
        end
      end

      if self.is_a?(::Rational)
        if self.denominator == 1
          return self.numerator.to_s
        end
        return self.to_s
      elsif self.is_a?(::Integer)
        return self.to_s
      end

      # Again we want to add the 0.0001 to the value before rounding.
      ('%.2f' % (self.to_f + 0.0001)).gsub(/\.?0+\z/,'')
    end
def to_human
      Incline::Extensions::Numeric::SHORT_SCALE.each do |(num,label)|
        if self >= num
          # Add 0.0001 to the value before rounding it off.
          # This way we're telling the system that we want it to round up instead of round to even.
          s = ('%.2f' % ((self.to_f / num) + 0.0001)).gsub(/\.?0+\z/,'')
          return "#{s} #{label}"
        end
      end

      if self.is_a?(::Rational)
        if self.denominator == 1
          return self.numerator.to_s
        end
        return self.to_s
      elsif self.is_a?(::Integer)
        return self.to_s
      end

      # Again we want to add the 0.0001 to the value before rounding.
      ('%.2f' % (self.to_f + 0.0001)).gsub(/\.?0+\z/,'')
    end
Formats the number using the short scale for any number over 1 million.