isDivisibleBy

infix fun Int.isDivisibleBy(other: Int): Boolean

Checks if the number is divisible by another number.

Return

True if the number is divisible by the other number, false otherwise.

Receiver

The dividend.

Parameters

other

The divisor.