Contents

NSDecimalCompare(_:_:)

Compares two decimal values.

Declaration

func NSDecimalCompare(_ leftOperand: UnsafePointer<Decimal>, _ rightOperand: UnsafePointer<Decimal>) -> ComparisonResult

Return 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.

See Also

Comparing decimals