NSDecimal.Add(NSDecimal, NSDecimal, NSDecimal, NSRoundingMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.