diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-11-21 12:46:03 +0000 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-11-21 14:11:54 -0800 |
| commit | b47b37c12cf30b06ec5afc365f3739b0744b3f4c (patch) | |
| tree | 4f423bb7e727b859620f639db035892d775e257c /numeric.c | |
| parent | 2289961b485b1cbf7b1012693722c16a6cdb4cda (diff) | |
[DOC] Harmonize #* methods
Diffstat (limited to 'numeric.c')
| -rw-r--r-- | numeric.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1195,13 +1195,14 @@ rb_float_minus(VALUE x, VALUE y) * call-seq: * self * other -> numeric * - * Returns a new \Float which is the product of +self+ and +other+: + * Returns the numeric product of +self+ and +other+: * * f = 3.14 * f * 2 # => 6.28 * f * 2.0 # => 6.28 * f * Rational(1, 2) # => 1.57 * f * Complex(2, 0) # => (6.28+0.0i) + * */ VALUE @@ -4098,16 +4099,17 @@ fix_mul(VALUE x, VALUE y) /* * call-seq: - * self * numeric -> numeric_result + * self * other -> numeric * - * Performs multiplication: + * Returns the numeric product of +self+ and +other+: * * 4 * 2 # => 8 - * 4 * -2 # => -8 * -4 * 2 # => -8 + * 4 * -2 # => -8 * 4 * 2.0 # => 8.0 * 4 * Rational(1, 3) # => (4/3) * 4 * Complex(2, 0) # => (8+0i) + * */ VALUE |
