Int
extension Int
-
Returns a
baseraised to a givenexpDeclaration
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
divisionbyother.Check Modulo operation for more details.
Declaration
Swift
public func quotientAndRemainder(dividingBy other: Int, division: DivisionType) -> (quotient: Int, remainder: Int)Parameters
otherDivisor.
divisionA type of division.
Return Value
Quotient and remainder of this value divided by
other.
Int Extension Reference