NSDecimalNumber

extension NSDecimalNumber: Comparable
extension NSDecimalNumber: ExpressibleByDecimal
  • Returns true if two NSDecimalNumber values are equal, false otherwise.

    Declaration

    Swift

    static func == (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
  • Returns true if the first NSDecimalNumber parameter is less than the second, false otherwise.

    Declaration

    Swift

    static func < (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
  • Returns true if the first NSDecimalNumber parameter is greater than the second, false otherwise.

    Declaration

    Swift

    static func > (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
  • Returns the additive inverse of the provided NSDecimalNumber.

    Declaration

    Swift

    prefix static func - (value: NSDecimalNumber) -> NSDecimalNumber
  • Returns the sum of two NSDecimalNumber values.

    Declaration

    Swift

    static func + (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber
  • Returns the difference of two NSDecimalNumber values.

    Declaration

    Swift

    static func - (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber
  • Returns the product of two NSDecimalNumber values.

    Declaration

    Swift

    static func * (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber
  • Returns the quotient of two NSDecimalNumber values.

    Declaration

    Swift

    static func / (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> NSDecimalNumber
  • Returns the result of raising the provided NSDecimalNumber to a specified power.

    Declaration

    Swift

    static func ^ (lhs: NSDecimalNumber, rhs: Int) -> NSDecimalNumber

Assignment