Instance Method

isLessThanOrEqualTo(_:)

Indicates whether this decimal is less than or equal to the specified one.

Declaration

func isLessThanOrEqualTo(_ other: Decimal) -> Bool

See Also

Comparing Decimals

static func < (Decimal, Decimal) -> Bool

Returns a Boolean value indicating whether one decimal number is strictly less than another.

static func == (Decimal, Decimal) -> Bool

Returns a Boolean value indicating whether two decimal numbers are equal.

func isEqual(to: Decimal) -> Bool

Indicates whether this decimal is equal to the specified one.

func isLess(than: Decimal) -> Bool

Indicates whether this decimal is less than the specified one.

func isTotallyOrdered(belowOrEqualTo: Decimal) -> Bool

Returns a Boolean value indicating whether this instance should precede the given value in an ascending sort.

func distance(to: Decimal) -> Decimal

Returns the distance from this value to the specified value.

func advanced(by: Decimal) -> Decimal

Returns a new value advanced by the given distance.