num.to_int รข integer
Instance Public methods
Invokes the child class's to_i
method to convert
num
to an integer.
1.0.class => Float 1.0.to_int.class => Fixnum 1.0.to_i.class => Fixnum
Invokes the child class's to_i
method to convert
num
to an integer.
1.0.class => Float 1.0.to_int.class => Fixnum 1.0.to_i.class => Fixnum
Please login to continue.