multiplyExact

fun multiplyExact(x: Int, y: Int): Int

Returns the product of the arguments, throwing an exception if the result overflows an int.

Return

the result

Since

1.8

Parameters

x

the first value

y

the second value

Throws

if the result overflows an int


Returns the product of the arguments, throwing an exception if the result overflows a long.

Return

the result

Since

1.8

Parameters

x

the first value

y

the second value

Throws

if the result overflows a long