BinaryInteger
extension BinaryInteger
-
Returns
selfrounded up to the nearest multiple ofn.Precondition
nis nonzero and |n| is representable asSelf.Declaration
Swift
public func rounded(upToNearestMultipleOf n: Self) -> Self -
The factorial of
self.Requires
selfis greater than or equal to zero.Declaration
Swift
public var factorial: Self { get } -
Undocumented
Declaration
Swift
func f(_ n: Self, _ a: Self) -> Self
View on GitHub