PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Numeric
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "If <em>aNumeric</em> is the same type as <em>num</em>, returns an array containing <em>aNumeric</em> and <em>num</em>. Otherwise, returns an array with both <em>aNumeric</em> and <em>num</em> represented as <tt>Float</tt> objects. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator." - !ruby/struct:SM::Flow::VERB body: " 1.coerce(2.5) #=> [2.5, 1.0]\n 1.2.coerce(3) #=> [3.0, 1.2]\n 1.coerce(2) #=> [2, 1]\n" full_name: Numeric#coerce is_singleton: false name: coerce params: | num.coerce(numeric) => array visibility: public
[-] coerce-i.yaml
[edit]
[-] round-i.yaml
[edit]
[-] %3c%3d%3e-i.yaml
[edit]
[-] divmod-i.yaml
[edit]
[-] singleton_method_added-i.yaml
[edit]
[-] cdesc-Numeric.yaml
[edit]
[-] ceil-i.yaml
[edit]
[-] nonzero%3f-i.yaml
[edit]
[-] truncate-i.yaml
[edit]
[-] real-i.yaml
[edit]
[-] arg-i.yaml
[edit]
[-] abs-i.yaml
[edit]
[-] %2d%40-i.yaml
[edit]
[-] zero%3f-i.yaml
[edit]
[-] conjugate-i.yaml
[edit]
[-] im-i.yaml
[edit]
[-] modulo-i.yaml
[edit]
[-] integer%3f-i.yaml
[edit]
[-] fdiv-i.yaml
[edit]
[-] floor-i.yaml
[edit]
[-] step-i.yaml
[edit]
[-] polar-i.yaml
[edit]
[-] to_int-i.yaml
[edit]
[-] remainder-i.yaml
[edit]
[-] quo-i.yaml
[edit]
[-] image-i.yaml
[edit]
[-] %2b%40-i.yaml
[edit]
[-] eql%3f-i.yaml
[edit]
[+]
..
[-] angle-i.yaml
[edit]
[-] imag-i.yaml
[edit]
[-] div-i.yaml
[edit]
[-] conj-i.yaml
[edit]