minus

open operator fun Number.minus(other: UInt): Number(source)

Subtracts this number and the other integer as elements of the ExtendedSemiring.

The result is equal to this - other.value.

Because it is partially defined, it may throw ArithmeticException. Be aware of the operation's domain!

Throws

iff the subtraction is not defined for the provided operands.


open operator fun Number.minus(other: ULong): Number(source)

Subtracts this number and the other integer as elements of the Ring.

The result is equal to this - other.value.

Because it is partially defined, it may throw ArithmeticException. Be aware of the operation's domain!

Throws

iff the subtraction is not defined for the provided operands.


open operator fun UInt.minus(other: Number): Number(source)
open operator fun ULong.minus(other: Number): Number(source)

Sums this integer and the other number as elements of the Ring.

The result is equal to this.value - other.

Because it is partially defined, it may throw ArithmeticException. Be aware of the operation's domain!

Throws

iff the subtraction is not defined for the provided operands.


abstract operator fun Number.minus(other: Number): Number(source)

Subtracts this and the other numbers in terms of the Ring.

Because it is partially defined, it may throw ArithmeticException. Be aware of the operation's domain!

Throws

iff the subtraction is not defined for the provided operands.