PHP Development
Floating-Point Arithmetic - Why is (int)((0.7+0.1)*10) = 7 ?
This article applies to PHP 5.x but also to PHP 7 While using floating-point arithmetic you might have noticed that not all the calculus results are as expected, this can usually be observed when cast…
Gabi DJ · Jan 26, 2016
Read more →