diff options
author | Kenta Murata <mrkn@users.noreply.github.com> | 2020-12-09 18:48:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 18:48:59 +0900 |
commit | fad3023e94c45e7f03478732f7641b6f39ba9d12 (patch) | |
tree | a53e562ae444a5b3f8d76308af62afd2f5c5c985 /internal/numeric.h | |
parent | cacdf2681dcc7c431973f33a18979b10566ec2f9 (diff) | |
download | ruby-fad3023e94c45e7f03478732f7641b6f39ba9d12.tar.gz |
Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#3870)
[Bug #17218]
[ruby-core:100312]
Diffstat (limited to 'internal/numeric.h')
-rw-r--r-- | internal/numeric.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/numeric.h b/internal/numeric.h index fa24927551..3dc72d22f5 100644 --- a/internal/numeric.h +++ b/internal/numeric.h @@ -55,6 +55,7 @@ VALUE rb_float_uminus(VALUE num); VALUE rb_int_plus(VALUE x, VALUE y); VALUE rb_float_plus(VALUE x, VALUE y); VALUE rb_int_minus(VALUE x, VALUE y); +VALUE rb_float_minus(VALUE x, VALUE y); VALUE rb_int_mul(VALUE x, VALUE y); VALUE rb_float_mul(VALUE x, VALUE y); VALUE rb_float_div(VALUE x, VALUE y); @@ -79,6 +80,7 @@ int rb_int_positive_p(VALUE num); int rb_int_negative_p(VALUE num); VALUE rb_num_pow(VALUE x, VALUE y); VALUE rb_float_ceil(VALUE num, int ndigits); +VALUE rb_float_floor(VALUE x, int ndigits); VALUE rb_float_abs(VALUE flt); static inline VALUE rb_num_compare_with_zero(VALUE num, ID mid); static inline int rb_num_positive_int_p(VALUE num); |