X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/Numeric
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Numeric
/
??
%2b%40-i.yaml
(255 B)
??
%2d%40-i.yaml
(269 B)
??
%3c%3d%3e-i.yaml
(301 B)
??
..
??
abs-i.yaml
(406 B)
??
angle-i.yaml
(218 B)
??
arg-i.yaml
(255 B)
??
cdesc-Numeric.yaml
(1.9 KB)
??
ceil-i.yaml
(566 B)
??
coerce-i.yaml
(792 B)
??
conj-i.yaml
(222 B)
??
conjugate-i.yaml
(312 B)
??
div-i.yaml
(393 B)
??
divmod-i.yaml
(2.04 KB)
??
eql%3f-i.yaml
(484 B)
??
fdiv-i.yaml
(331 B)
??
floor-i.yaml
(507 B)
??
im-i.yaml
(248 B)
??
imag-i.yaml
(218 B)
??
image-i.yaml
(289 B)
??
integer%3f-i.yaml
(349 B)
??
modulo-i.yaml
(313 B)
??
nonzero%3f-i.yaml
(706 B)
??
polar-i.yaml
(220 B)
??
quo-i.yaml
(329 B)
??
real-i.yaml
(254 B)
??
remainder-i.yaml
(596 B)
??
round-i.yaml
(380 B)
??
singleton_method_added-i.yaml
(330 B)
??
step-i.yaml
(1.3 KB)
??
to_int-i.yaml
(316 B)
??
truncate-i.yaml
(388 B)
??
zero%3f-i.yaml
(289 B)
Editing: coerce-i.yaml
--- !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
Upload File
Create Folder