APIdock
/
Ruby
/
Browse
About
method
abs2
v1_9_2_180
-
Show latest stable
- Class:
Numeric
abs2
()
public
Returns square of self.
Show source
static VALUE numeric_abs2(VALUE self) { return f_mul(self, self); }
Related methods
Instance methods
%
+@
-@
<=>
abs
abs2
angle
arg
ceil
coerce
conj
conjugate
denominator
div
divmod
eql?
fdiv
floor
i
imag
imaginary
initialize_copy
integer?
magnitude
modulo
nonzero?
numerator
phase
polar
quo
real
real?
rect
rectangular
remainder
round
singleton_method_added
step
to_c
to_int
truncate
zero?