scoop:scoop.math:0.1.0
multiplyExact
public
public fun multiplyExact(a: UByte, b: UByte): UByte
Multiplies exactly, throwing ArithmeticException on overflow.
public
b: UByte
public
a: UByte
public
public fun multiplyExact(a: UInt, b: UInt): UInt
Multiplies exactly, throwing ArithmeticException on overflow.
public
a: UInt
public
b: UInt
public
public fun multiplyExact(a: Short, b: Short): Short
Multiplies exactly, throwing ArithmeticException on overflow.
public
b: Short
public
a: Short
public
public fun multiplyExact(a: Int, b: Int): Int
Multiplies exactly, throwing ArithmeticException on overflow.
public
b: Int
public
a: Int
public
public fun multiplyExact(a: UShort, b: UShort): UShort
Multiplies exactly, throwing ArithmeticException on overflow.
public
a: UShort
public
b: UShort
public
public fun multiplyExact(a: Byte, b: Byte): Byte
Multiplies exactly, throwing ArithmeticException on overflow.
public
a: Byte
public
b: Byte
public
public fun multiplyExact(a: Long, b: Long): Long
Multiplies exactly, throwing ArithmeticException on overflow.
public
b: Long
public
a: Long
public
public fun multiplyExact(a: ULong, b: ULong): ULong
Multiplies exactly, throwing ArithmeticException on overflow.
public
b: ULong
public
a: ULong