Jquery, how to work with high numbers
问题 I need to validate some integer number which is 22 chars long. I need to divide that number and get quotient as well as remainder of divining. BUT, when I send it to modulo function, it returns 7.04406000774059e+21 labas = modulo(7044060007740589212932, 97); function modulo (divident, divisor){ alert(divident); } 回答1: There are a couple of libraries for handling big numbers in js: biginteger (and description) bignumber jsbn bignum 回答2: I think you mean divide (not "divine") and remainder (not