APIdock
/
Ruby
/
Browse
About
method
denominator
v2_6_3
-
Show latest stable
- Class:
Integer
denominator
()
public
Returns 1.
Show source
static VALUE integer_denominator(VALUE self) { return INT2FIX(1); }
Related methods
Instance methods
%
&
*
**
+
-
-@
/
<
<<
<=
<=>
==
===
>
>=
>>
[]
^
abs
allbits?
anybits?
bit_length
ceil
chr
coerce
dclone
denominator
digits
div
divmod
downto
even?
fdiv
floor
gcd
gcdlcm
inspect
integer?
lcm
magnitude
modulo
next
nobits?
numerator
odd?
ord
pow
pred
prime?
prime_division
rationalize
remainder
round
size
succ
times
to_bn
to_d
to_f
to_i
to_int
to_r
to_s
truncate
upto
|
~
Class methods
each_prime
from_prime_division
sqrt