diff options
author | Kenta Murata <[email protected]> | 2020-12-09 18:48:59 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-09 18:48:59 +0900 |
commit | fad3023e94c45e7f03478732f7641b6f39ba9d12 (patch) | |
tree | a53e562ae444a5b3f8d76308af62afd2f5c5c985 /internal/rational.h | |
parent | cacdf2681dcc7c431973f33a18979b10566ec2f9 (diff) |
Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#3870)
[Bug #17218]
[ruby-core:100312]
Notes
Notes:
Merged-By: mrkn <[email protected]>
Diffstat (limited to 'internal/rational.h')
-rw-r--r-- | internal/rational.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/rational.h b/internal/rational.h index 18efd7bd5e..e53ee7b499 100644 --- a/internal/rational.h +++ b/internal/rational.h @@ -29,12 +29,14 @@ VALUE rb_rational_uminus(VALUE self); VALUE rb_rational_plus(VALUE self, VALUE other); VALUE rb_rational_minus(VALUE self, VALUE other); VALUE rb_rational_mul(VALUE self, VALUE other); +VALUE rb_rational_div(VALUE self, VALUE other); VALUE rb_lcm(VALUE x, VALUE y); VALUE rb_rational_reciprocal(VALUE x); VALUE rb_cstr_to_rat(const char *, int); VALUE rb_rational_abs(VALUE self); VALUE rb_rational_cmp(VALUE self, VALUE other); VALUE rb_rational_pow(VALUE self, VALUE other); +VALUE rb_rational_floor(VALUE self, int ndigits); VALUE rb_numeric_quo(VALUE x, VALUE y); VALUE rb_float_numerator(VALUE x); VALUE rb_float_denominator(VALUE x); |