see the sample code:
$val = .815;
$val = $val * 10000; // $val should be 8150
$a = $val % 50; // $a should be 0
echo 'remainder: '. $a ;
-------- Output ----
remainder: 49
how ??????
But if I simply write this...
$a = 8150 % 50;
then the result shows 0.
really awkward !!!


