NSDecimalCompare(_:_:)
Compares two decimal values.
Declaration
func NSDecimalCompare(_ leftOperand: UnsafePointer<Decimal>, _ rightOperand: UnsafePointer<Decimal>) -> ComparisonResultReturn Value
NSOrderedDescending if leftOperand is bigger than rightOperand; NSOrderedAscending if rightOperand is bigger than leftOperand; or NSOrderedSame if the two operands are equal.
Discussion
For more information, see Number and Value Programming Topics.