scoop:scoop.math:0.1.0
subtractExact
public
public fun subtractExact(a: UInt, b: UInt): UInt
Computes the exact result, throwing ArithmeticException on overflow.
public
b: UInt
public
a: UInt
public
public fun subtractExact(a: ULong, b: ULong): ULong
Computes the exact result, throwing ArithmeticException on overflow.
public
a: ULong
public
b: ULong
public
public fun subtractExact(a: UShort, b: UShort): UShort
Computes the exact result, throwing ArithmeticException on overflow.
public
a: UShort
public
b: UShort
public
public fun subtractExact(a: Int, b: Int): Int
Computes the exact result, throwing ArithmeticException on overflow.
public
b: Int
public
a: Int
public
public fun subtractExact(a: UByte, b: UByte): UByte
Computes the exact result, throwing ArithmeticException on overflow.
public
a: UByte
public
b: UByte
public
public fun subtractExact(a: Short, b: Short): Short
Computes the exact result, throwing ArithmeticException on overflow.
public
a: Short
public
b: Short
public
public fun subtractExact(a: Long, b: Long): Long
Computes the exact result, throwing ArithmeticException on overflow.
public
a: Long
public
b: Long
public
public fun subtractExact(a: Byte, b: Byte): Byte
Computes the exact result, throwing ArithmeticException on overflow.
public
b: Byte
public
a: Byte