method
to_int
v2_6_3 -
Show latest stable
- Class:
Numeric
to_int()public
Invokes the child class’s to_i method to convert num to an integer.
1.0.class #=> Float 1.0.to_int.class #=> Integer 1.0.to_i.class #=> Integer
to_int()Invokes the child class’s to_i method to convert num to an integer.
1.0.class #=> Float 1.0.to_int.class #=> Integer 1.0.to_i.class #=> Integer