Modulo in JavaScript - large number

Posted by Benedikt R. on Stack Overflow See other posts from Stack Overflow or by Benedikt R.
Published on 2009-05-30T15:15:38Z Indexed on 2010/05/05 10:38 UTC
Read the original article Hit count: 776

Filed under:
|
|

Hi! I try to calculate with JS' modulo function, but don't get the right result (which should be 1). Here is a hardcoded piece of code.

var checkSum = 210501700012345678131468;
alert(checkSum % 97);

Result: 66

Whats the problem here?

Regards, Benedikt

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about modulo