Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix AS::NumberHelper results with rationals | Juanjo Bazán | 2014-05-31 | 1 | -5/+1 |
| | | | | | | | | | | :precision was incorrectly being applied to Rationals before: ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2 => "3.3" after: ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2 => "3.33" | ||||
* | fix `number_to_percentage` with `Float::NAN`, `Float::INFINITY`. | Yves Senn | 2014-03-17 | 1 | -2/+1 |
| | | | | | | | Closes #14405. This is a follow-up to 9e997e9039435617b6a844158f5437e97f6bc107 to restore the documented behavior. | ||||
* | Fix AS::NumberHelper results with large precisions | Kenta Murata & Akira Matsuda | 2013-12-20 | 1 | -7/+37 |
| | | | | | | | | | before: ActiveSupport::NumberHelper.number_to_rounded '3.14159', precision: 50 => "3.14158999999999988261834005243144929409027099609375" after: ActiveSupport::NumberHelper.number_to_rounded '3.14159', precision: 50 => "3.14159000000000000000000000000000000000000000000000" | ||||
* | Remove earlier return in favor of conditional | Carlos Antonio da Silva | 2013-12-03 | 1 | -6/+9 |
| | |||||
* | Stop using local variables everywhere, make use of the reader | Carlos Antonio da Silva | 2013-12-03 | 1 | -5/+5 |
| | |||||
* | Rename variable that holds whether or not the class should validate a float ↵ | Carlos Antonio da Silva | 2013-12-03 | 1 | -2/+2 |
| | | | | number | ||||
* | :sicssors: | Rafael Mendonça França | 2013-12-02 | 1 | -2/+0 |
| | |||||
* | Make execute priave API | Rafael Mendonça França | 2013-12-02 | 1 | -1/+2 |
| | |||||
* | Make load of NumberHelper thread safe | Rafael Mendonça França | 2013-12-02 | 1 | -0/+60 |