diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-11-20 20:57:34 +0000 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-11-20 14:06:41 -0800 |
| commit | 826e91a7e2c427f604f47f775d156d1d398dadc6 (patch) | |
| tree | c869ffa7f1b1e834ad29b96c7a1b936f2fa47196 /numeric.c | |
| parent | ff1d23eccba3ab37e77bf2d2222cad9d6f99a0ab (diff) | |
[DOC] Harmonize mod methods
Diffstat (limited to 'numeric.c')
| -rw-r--r-- | numeric.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -633,7 +633,7 @@ num_div(VALUE x, VALUE y) * call-seq: * self % other -> real_numeric * - * Returns +self+ modulo +other+ as a real number. + * Returns +self+ modulo +other+ as a real numeric (\Integer, \Float, or \Rational). * * Of the Core and Standard Library classes, * only Rational uses this implementation. @@ -1358,7 +1358,7 @@ ruby_float_mod(double x, double y) * call-seq: * self % other -> float * - * Returns +self+ modulo +other+ as a float. + * Returns +self+ modulo +other+ as a \Float. * * For float +f+ and real number +r+, these expressions are equivalent: * @@ -4316,9 +4316,9 @@ fix_mod(VALUE x, VALUE y) /* * call-seq: - * self % other -> real_number + * self % other -> real_numeric * - * Returns +self+ modulo +other+ as a real number. + * Returns +self+ modulo +other+ as a real numeric (\Integer, \Float, or \Rational). * * For integer +n+ and real number +r+, these expressions are equivalent: * |
