| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-08-23 | numeric.c: fix: `-0.0.abs` returned `-0.0`. | Yukihiro "Matz" Matsumoto | |
| 2021-08-21 | test/float.rb: avoid `1.0e16` in tests without precision specified. | Yukihiro "Matz" Matsumoto | |
| 2021-03-18 | `Float::NAN/0` should be `Float::NAN`; ref a0b3378b3 | KOBAYASHI Shuji | |
| #### Before this patch: ```console $ bin/mruby -e 'p(Float::NAN/0)' Infinity ``` #### After this patch (same as Ruby): ```console $ bin/mruby -e 'p(Float::NAN/0)' NaN ``` | |||
| 2021-01-17 | Add tests for `Integer#quo` and `Float#quo`; #5268 | Yukihiro "Matz" Matsumoto | |
| 2020-11-21 | Update `Float#to_s` to keep trailing zero as CRuby does; ref 68cebb6 | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Always add trailing `.0` in `Float#inspect`; ref #4225 | KOBAYASHI Shuji | |
| Trailing `.0` is removed from `Float#to_s` and `Float#inspect` at 9d08025b. However, I think the more human-readable format is better for `Float#inspect`. For example, in the `Float#to_s` format, the failure message is not well understood when testing values including types by `eql?` (e.g. `Numeric#step` test). ```ruby assert "example" do exp = 1.0 act = 1 assert_operator(exp, :eql?, act) #=> Expected 1 to be eql? 1. end ``` | |||
| 2020-10-12 | Rename float configuration option names. | Yukihiro "Matz" Matsumoto | |
| - `MRB_WITHOUT_FLOAT` => `MRB_NO_FLOAT` - `MRB_USE_FLOAT` => `MRB_USE_FLOAT32` The former is to use `USE_XXX` naming convention. The latter is to make sure `float` is 32bit float and not floating point number in general. | |||
| 2019-09-07 | Revert part of #4225 | Yukihiro "Matz" Matsumoto | |
| Since in mruby, Integer and Float interchange frequently (mostly on overflow), so adding explicit `.0` can cause problems sometimes. For example: https://github.com/mattn/mruby-json/pull/40 https://github.com/pepabo/mruby-msd/pull/13 https://github.com/mattn/mruby-json/pull/42 | |||
| 2019-04-23 | Fix "ambiguous first argument" warning in `test/t/float.rb` | KOBAYASHI Shuji | |
| 2019-04-22 | Add `assert_predicate` and `assert_operator` | KOBAYASHI Shuji | |
| 2019-03-25 | Update float test values to avoid precision errors. | Yukihiro "Matz" Matsumoto | |
| 2019-03-25 | Avoid infinite binary floating numbers in `float`. | Yukihiro "Matz" Matsumoto | |
| 2019-03-21 | Fix `Float#eql?` | KOBAYASHI Shuji | |
| 2019-03-15 | Avoid using infinite binary floating point numbers in tests. | Yukihiro "Matz" Matsumoto | |
| 2019-01-13 | Improve compatibility to CRuby for `Float#to_s` | KOBAYASHI Shuji | |
| Bfore: Float::INFINITY.to_s #=> "inf" 50.0.to_s #=> "50" 1e20.to_s #=> "1e+20" After / CRuby: Float::INFINITY.to_s #=> "Infinity" 50.0.to_s #=> "50.0" 1e20.to_s #=> "1.0e+20" | |||
| 2019-01-03 | Remove `Kernel#class_defined?` which is not available in CRuby; #3829 | Yukihiro "Matz" Matsumoto | |
| 2017-12-13 | Skip `test/t/float.rb` tests; ref #3827 | Yukihiro "Matz" Matsumoto | |
| 2017-03-29 | Should raise FloatDomainError | ksss | |
| 2015-11-06 | fix ambiguous first argument warning | cremno | |
| /home/travis/build/mruby/mruby/test/t/float.rb:201:17: ambiguous first argument; put parentheses or even spaces | |||
| 2015-09-02 | Float << and >> should be more compatible to Fixnum | Yukihiro "Matz" Matsumoto | |
| 2014-06-15 | Move direct superclass checking to `test/t/superclass.rb`. | take_cheeze | |
| 2014-03-21 | Float#round fix bug for infinity and nan cases | ksss | |
| 2014-03-16 | float + nil should be raise TypeError | ksss | |
| 2014-03-04 | Fix Float#divmod. | Tomoyuki Sahara | |
| 2014-02-03 | add Float#nan? | Tomoyuki Sahara | |
| 2013-08-02 | I fix order of actual and expect test value in float.rb. | Jun Hiroe | |
| 2013-06-14 | Fix float parenthese warning | Daniel Bovensiepen | |
| 2013-06-14 | Improve Float Tests | Daniel Bovensiepen | |
| 2012-11-20 | Use check_float when testing equality for float values | Xuejie Xiao | |
| 2012-08-01 | float do not have enough precision to round if MRB_USE_FLOAT is set | Yukihiro Matsumoto | |
| 2012-07-22 | add test cases for floor, inifinite?, truncate, ceil, and round | Akira Kuroda | |
| 2012-06-03 | Add more superclass tests | Daniel Bovensiepen | |
| 2012-05-29 | Add Test cases for Literals, Enumeration, Exceptions and clean line endings | Daniel Bovensiepen | |
| 2012-05-23 | test t/*.rb spacing fix | Yukihiro Matsumoto | |
| 2012-05-19 | Finish all Float ISO Tests | Daniel Bovensiepen | |
