APIdock
/
Ruby
/
Browse
About
method
abs2
ruby 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
clone
coerce
conj
conjugate
denominator
div
divmod
dup
eql?
fdiv
finite?
floor
i
imag
imaginary
infinite?
integer?
magnitude
modulo
negative?
nonzero?
numerator
phase
polar
positive?
quo
real
real?
rect
rectangular
remainder
round
singleton_method_added
step
to_c
to_int
truncate
zero?