[PHP] Re: Division [maybe a bug]

2008-05-11 Thread Chris W
jo opp wrote: 2008/5/11 Chris W <[EMAIL PROTECTED]>: jo opp wrote: Hello! $var1= 2155243640%31104000; $var2= 2147309244%31104000; echo $var1 // Return -24651656 echo $var2 // Return 1133244 $var2 return the correct result, but $var1 is wrong (the correct result is 9067640) Probably becau

[PHP] Re: Division [maybe a bug]

2008-05-11 Thread jo opp
2008/5/11 Chris W <[EMAIL PROTECTED]>: > jo opp wrote: > > > Hello! > > > > $var1= 2155243640%31104000; > > $var2= 2147309244%31104000; > > > > echo $var1 // Return -24651656 > > echo $var2 // Return 1133244 > > > > $var2 return the correct result, but $var1 is wrong (the correct > > result is 9067

[PHP] Re: Division [maybe a bug]

2008-05-10 Thread Chris W
jo opp wrote: Hello! $var1= 2155243640%31104000; $var2= 2147309244%31104000; echo $var1 // Return -24651656 echo $var2 // Return 1133244 $var2 return the correct result, but $var1 is wrong (the correct result is 9067640) Probably because the maximum signed 32 bit integer value is 2,147,483,6