SignedInteger

protocol SignedInteger : BinaryInteger, SignedNumeric
  • Mechanica

    Determines if self is positive (equivalent to self > 0).

    Declaration

    Swift

    public var isPositive: Bool { get }
  • Mechanica

    Determines if self is negative (equivalent to self < 0).

    Declaration

    Swift

    public var isNegative: Bool { get }