Jump to content

6014359000000928 % 8 = 7...


Hailwood

Recommended Posts

hi there,

 

 

well here is what i am doing:

 

 

 

$flybuys: 6014359000000928

$check: 8

$total = (array_sum($odds))+$evens;
    $total = str_split($total);
    $check = 10 - $total[1];
    echo $flybuys.' % '.$check.': '.$flybuys % $check.'<br />';
    $res = $flybuys % $check;
    echo 'res: '.$res;

 

 

and the output is:

6014359000000928 % 8: 7

res: 7

yet if i do:

echo 6014359000000928 % 8;

i get: 0;, which is correct

so where is the 7 coming from?

Link to comment
https://forums.phpfreaks.com/topic/207696-6014359000000928-8-7/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.