Instance Method

decimalNumberByDividingBy:

Divides the number by another given number.

Declaration

- (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber;

Parameters

decimalNumber

The number by which to divide the receiver.

Return Value

A new NSDecimalNumber object whose value is the value of the receiver divided by decimalNumber.

Discussion

This method uses the default behavior when handling calculation errors and rounding.

See Also

Performing Arithmetic

- decimalNumberByAdding:

Adds this number to another given number.

- decimalNumberBySubtracting:

Subtracts another given number from this one.

- decimalNumberByMultiplyingBy:

Multiplies the number by another given number.

- decimalNumberByRaisingToPower:

Raises the number to a given power.

- decimalNumberByMultiplyingByPowerOf10:

Multiplies the number by 10 raised to the given power.

- decimalNumberByAdding:withBehavior:

Adds this number to another given number using the specified behavior.

- decimalNumberBySubtracting:withBehavior:

Subtracts this a given number from this one using the specified behavior.

- decimalNumberByMultiplyingBy:withBehavior:

Multiplies this number by another given number using the specified behavior.

- decimalNumberByDividingBy:withBehavior:

Divides this number by another given number using the specified behavior.

- decimalNumberByRaisingToPower:withBehavior:

Raises the number to a given power using the specified behavior.

- decimalNumberByMultiplyingByPowerOf10:withBehavior:

Multiplies the number by 10 raised to the given power using the specified behavior.