multiple_of?(number)
Instance Public methods
Check whether the integer is evenly divisible by the argument.
1 2 3 | 0 .multiple_of?( 0 ) # => true 6 .multiple_of?( 5 ) # => false 10 .multiple_of?( 2 ) # => true |
Check whether the integer is evenly divisible by the argument.
1 2 3 | 0 .multiple_of?( 0 ) # => true 6 .multiple_of?( 5 ) # => false 10 .multiple_of?( 2 ) # => true |
Designed by : w10schools
service@w10schools.com
Please login to continue.