Int
extension Int
-
Returns a
base
raised to a givenexp
Declaration
Swift
public static func pow(_ base: Int, _ exp: Int) -> Int
-
Type of division used in
See moreInt.quotientAndRemainder(dividingBy:division:)
Declaration
Swift
public enum DivisionType
-
Returns the quotient and remainder of this value after
division
byother
.Check Modulo operation for more details.
Declaration
Swift
public func quotientAndRemainder(dividingBy other: Int, division: DivisionType) -> (quotient: Int, remainder: Int)
Parameters
other
Divisor.
division
A type of division.
Return Value
Quotient and remainder of this value divided by
other
.