| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-03-24 | rational.c: implement `Rational#<=>` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#/` and `#quo` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#*` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#-` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-24 | rational.c: implement `Rational#+` in C. | Yukihiro "Matz" Matsumoto | |
| 2021-03-19 | rational.c: overhaul rational operators. | Yukihiro "Matz" Matsumoto | |
| - define `MRB_TT_RATIONAL` - change object structure (`struct RRational`) - add memory management for `MRB_TT_RATIONAL` - avoid operator overloading as much as possible - implement division overloading in C - as a result, performance improved a lot | |||
| 2021-01-17 | Define `Rational#quo`; fix #5268 | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Made `Rational` overhaul. | Yukihiro "Matz" Matsumoto | |
| - Implement `Rational()` in `C`. - Use `float` to `rational` conversion function taken from: https://rosettacode.org/wiki/Convert_decimal_number_to_rational#C | |||
| 2020-10-12 | Reorganize `Integer` system. | Yukihiro "Matz" Matsumoto | |
| - Integrate `Fixnum` and `Integer` - Remove `Integral` - `int / int -> int` - Replace `mrb_fixnum()` to `mrb_int()` - Replace `mrb_fixnum_value()` to `mrb_int_value()`. - Use `mrb_integer_p()` instead of `mrb_fixnum_p()` | |||
| 2020-10-12 | Integrate `Fixnum` class into `Integer` class | dearblue | |
| * The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead. | |||
| 2020-06-20 | Symbolify saved alias name to improve performance. | Yukihiro "Matz" Matsumoto | |
| 2019-07-18 | Avoid making top-level `env` in initialization code; ref #4581 | Yukihiro "Matz" Matsumoto | |
| 2019-05-29 | Slightly simplify `Rational#==`; ref #4475 | Yukihiro "Matz" Matsumoto | |
| 2019-05-27 | Fix `Rational#==(Complex)` | KOBAYASHI Shuji | |
| Consider a Numreic class like `Complex` that does not have `<=>` but `==` works (`0i == 0r` is `true`). | |||
| 2019-05-22 | `Kernel#Rational` requires numerator | KOBAYASHI Shuji | |
| 2019-05-21 | Should not refer `Float` class in case of `MRB_WITHOUT_FLOAT`. | Yukihiro "Matz" Matsumoto | |
| This commit removes `Float` from `rational.c`. | |||
| 2019-05-21 | Move `**`,`/`,`quo`,`div` and comparison methods to Integral from Numeric | KOBAYASHI Shuji | |
| Having these methods in Numeric can get in the way of creating subclasses of Numeric because they only support Fixnum and Float. | |||
| 2019-05-20 | Drop dependency from `mruby-rational` to `mruby-object-ext` | KOBAYASHI Shuji | |
| 2019-05-19 | Fix `Rational#<=>(Numeric)` | KOBAYASHI Shuji | |
| Reported by Sergey Ukrainskiy: https://github.com/mruby/mruby/commit/f5fb1307b017fb972c12b4ec4b1866d789b0ca09#r33590698 | |||
| 2019-05-18 | Move `Object#(Rational|Complex)` to `Kernel` | KOBAYASHI Shuji | |
| 2019-05-18 | Implement `Rational._new` in C. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Merge pull request #4442 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/drop-dependency-from-mruby-rational-to-mruby-numeric-ext Drop dependency from `mruby-rational` to `mruby-numeric-ext` | |||
| 2019-05-17 | Drop dependency from `mruby-rational` to `mruby-numeric-ext` | KOBAYASHI Shuji | |
| 2019-05-17 | Fix `Numeric#to_r` | KOBAYASHI Shuji | |
| 2019-05-17 | Implement part of `Rational` in C. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Avoid direct access to instance variables in `rational.rb`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Fixed wrong overloading. | Yukihiro "Matz" Matsumoto | |
| `float op rational` should return `float`, since float is an inexact value. | |||
| 2019-05-17 | Use `div` (integer divition) instead of `/` for rational numbers. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Fix `Rational#==` | KOBAYASHI Shuji | |
| 2019-05-15 | Fix dependencies | Ukrainskiy Sergey | |
| 2019-05-15 | Basic implementation of Complex and Rational classes | Ukrainskiy Sergey | |
| 2019-05-15 | Initial suffix support | Ukrainskiy Sergey | |
