A question about floating point modulo operation is a routine in the book & lt ;? Php $ a = 5; $ B = 3; echo & nbsp; $ a/$ B % $ B ;? & Gt; the result of the above case Modulo is 1. The following is my personal understanding, but I am not sure. please give me your answers. $ A/$ B Get a floating point number as the divisor and % B as the divisor to perform the modulo operation. When asked: a question about floating point modulo
A routine in the book
$a=5;
$b=3;
echo $a/$b%$b;
?>
The result of the above case Modulo is 1.
The following is my personal understanding, but I am not sure. please give me your answers.
$ A/$ B Get a floating point number as the divisor and % B as the divisor to perform the modulo operation. when the divisor is floating and less than the divisor, the number of modulo operations is less than 1, does it mean to automatically add the first digit after the decimal point to 1 without rounding it down? Share: More