SignedInteger
protocol SignedInteger : BinaryInteger, SignedNumeric where Self.Magnitude : BinaryInteger
-
Mechanica
Determine if self is positive (equivalent to
self > 0
).Declaration
Swift
public var isPositive: Bool
-
Mechanica
Determine if self is negative (equivalent to
self < 0
).Declaration
Swift
public var isNegative: Bool