summaryrefslogtreecommitdiff
path: root/internal/rational.h
diff options
context:
space:
mode:
authorKenta Murata <mrkn@users.noreply.github.com>2020-12-09 18:48:59 +0900
committerGitHub <noreply@github.com>2020-12-09 18:48:59 +0900
commitfad3023e94c45e7f03478732f7641b6f39ba9d12 (patch)
treea53e562ae444a5b3f8d76308af62afd2f5c5c985 /internal/rational.h
parentcacdf2681dcc7c431973f33a18979b10566ec2f9 (diff)
downloadruby-fad3023e94c45e7f03478732f7641b6f39ba9d12.tar.gz
Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#3870)
[Bug #17218] [ruby-core:100312]
Diffstat (limited to 'internal/rational.h')
-rw-r--r--internal/rational.h2
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);