Instance Method

negate()

Negates this decimal.

Declaration

mutating func negate()

Relationships

From Protocol

See Also

Performing Arithmetic

static func * (Decimal, Decimal) -> Decimal

Multiplies two decimal numbers.

static func *= (inout Decimal, Decimal)

Multiplies two decimal numbers, storing the result in the first number.

static func += (inout Decimal, Decimal)

Adds two decimal numbers, storing the result in the first number.

static func - (Decimal, Decimal) -> Decimal

Subtracts one decimal number from another.

static func -= (inout Decimal, Decimal)

Subtracts one decimal number from another, storing the result in the first number.

static func / (Decimal, Decimal) -> Decimal

Divides one decimal number by another.

static func /= (inout Decimal, Decimal)

Divides one decimal number by another, storing the result in the first number.

func pow(Decimal, Int) -> Decimal

Returns a decimal number raised to a given power.