Math.imul

Returns the result of a wrapping 32-bit multiplication of two numbers.

Syntax

imul(a, b)

Parameters

Return value

A number which is the result of multiplication.

Examples

Math.imul(123, 456)
56088
Math.imul(123, 2**32-1)
-123