Loading

MULTIPLYEXACT

math

The MULTIPLYEXACT function consumes two LONGs from the top of the stack and puts back the product. If the product overflows a LONG, this function fails.

Since 2.6.0, this function can be applied to a list of numeric values.

MULTIPLYEXACT is available since version 1.2.23.

See also

Signature

Examples

2 21 MULTIPLYEXACT <% MAXLONG 42 MULTIPLYEXACT %> <% ERROR 0 GET 'message' GET %> <% %> TRY <% MAXLONG -1 * 42 MULTIPLYEXACT %> <% ERROR 0 GET 'message' GET %> <% %> TRY