What is going on here:
12 % 4 = 0; // integers
(1.2 / 0.1) % 4 = 3; // floats (12) % 4 = 3!
$a = 1.2 / 0.1;
$b = ((int)$a) % 4;
$c = 12 % 4;
print_r([
$a,
$b,
$c,
]);
What is going on here:
12 % 4 = 0; // integers
(1.2 / 0.1) % 4 = 3; // floats (12) % 4 = 3!
$a = 1.2 / 0.1;
$b = ((int)$a) % 4;
$c = 12 % 4;
print_r([
$a,
$b,
$c,
]);