Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to use modulo on 36 digit numbers?
- Daniela Waranie
October 11, 2009, 6:16 am
rate this thread
i want to make a check for international bank account numbers.
The IBAN can be 36 digits long.
To check a german IBAN i need to make modulo 97 to it an check if the
rest is equal to 1. (german IBAN is 22 digits long, the number to check
is 24 digits long) e.g.
210501700012345678131468 mod 97 = 1
But when i do this:
$rest = 210501700012345678131468 % 97;
I get 0 instead of the correct result (1).
How to use modulo on 36 digit numbers?
Re: How to use modulo on 36 digit numbers?
> I'm a little interested in how the bcmod function implements.
<top posting fixed>
You can get the source from http://www.php.net . It has everything you
Also, please don't top post. Thanks.
Remove the "x" from my email address
JDS Computer Training Corp.