I get integer overflow value 7.233907357909E+16
from multiplication.
Now i need to calculate modulus 7.233907357909E+16 % 15
.
How can i solve it, any idea how to do this?
You should look into bcmul
and bcmod
for arbitrary precision computations.
$res = bcmul('134334244395933282', '2834783723423487283');
$modRes = bcmod($res, '15');
echo $modRes;