JavaScript can handle the following Math just fine:
var result = (20000000 * 48271) % 0x7FFFFFFF;
But in some programming languages, that first int*int
multiplication results in a value too large to hold in a standard 32 bit integer. Is there any way to "simulate" this in JavaScript, and see what the resulting calculation would be if the multiplication resulted in an integer overflow?