NSDecimalNumber
extension NSDecimalNumber: Comparable
extension NSDecimalNumber: ExpressibleByDecimal
-
Returns
true
if twoNSDecimalNumber
values are equal,false
otherwise.Declaration
Swift
static func == (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
-
Returns
true
if the firstNSDecimalNumber
parameter is less than the second,false
otherwise.Declaration
Swift
static func < (lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool
-
Returns
true
if the firstNSDecimalNumber
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
-
Undocumented
Declaration
Swift
static func += (lhs: inout NSDecimalNumber, rhs: NSDecimalNumber)
-
Undocumented
Declaration
Swift
static func -= (lhs: inout NSDecimalNumber, rhs: NSDecimalNumber)
-
Undocumented
Declaration
Swift
static func *= (lhs: inout NSDecimalNumber, rhs: NSDecimalNumber)
-
Undocumented
Declaration
Swift
static func /= (lhs: inout NSDecimalNumber, rhs: NSDecimalNumber)
-
Undocumented
Declaration
Swift
public var decimalNumber: NSDecimalNumber { get }
-
Undocumented
Declaration
Swift
public static func makeFromNumber(_ number: NSNumber) -> Self