I have an issue with php 5.6 rounding to two decimals. If you test the following it will export $y exactly as 19.620000000000001
I know there are solutions to display it using number_format, but how do I make it to be exactly 19.62?
Thanks.
$x = 19.620000000000001;
$y = round($x, 2);
var_export($y);
Later Edit. I need it for exact math operations, not display.