NSDecimal.Add(NSDecimal, NSDecimal, NSDecimal, NSRoundingMode) Method

Definition

Adds two NSDecimal values.

public static Foundation.NSCalculationError Add(out Foundation.NSDecimal result, ref Foundation.NSDecimal left, ref Foundation.NSDecimal right, Foundation.NSRoundingMode mode);
static member Add : NSDecimal * NSDecimal * NSDecimal * Foundation.NSRoundingMode -> Foundation.NSCalculationError

Parameters

result
NSDecimal

The result of the addition.

left
NSDecimal

The first value to add.

right
NSDecimal

The second value to add.

mode
NSRoundingMode

The NSRoundingMode to use.

Returns

An NSCalculationError indicating whether the operation succeeded or failed.

Applies to