Int
public extension Int
-
Returns whether number is even
Declaration
Swift
var isEven: Bool { get }
-
Returns whether number is odd
Declaration
Swift
var isOdd: Bool { get }
-
Returns
true
if value end on 1.Declaration
Swift
var isSingular: Bool { get }
-
Returns
self
asUInt
Declaration
Swift
var asUInt: UInt? { get }
-
Returns
self
asCGFloat
Declaration
Swift
var asCGFloat: CGFloat { get }
-
Returns
self
asDouble
Declaration
Swift
var asDouble: Double { get }
-
Returns
self
asFloat
Declaration
Swift
var asFloat: Float { get }
-
Returns
self
asString
Declaration
Swift
var asString: String { get }
-
Returns
self
as HEXString
in a format like0xAABB11
Declaration
Swift
var asHexString: String { get }
-
Returns
self
asTimeInterval
Declaration
Swift
var asTimeInterval: TimeInterval { get }