I get an awk result when I subtract two values, the error is that I get an exponent value of 2.7755575615629E-17 instead of 0. Anything that I don’t have enough to submit an application, please suggest. This happens in some cases, only as 0.66, 0.67, 0.33,
The prototype of the code I'm using is below
$_SESSION['x'] = 1;
$_SESSION['x'] = $_SESSION['x'] - 0.83;
echo ( $_SESSION['x']- 0.17) ;
echo '<br>';
But when swapping values, everything is fine with 0
$_SESSION['x'] = 1;
$_SESSION['x'] = $_SESSION['x'] - 0.17;
echo ( $_SESSION['x']- 0.83) ;
echo '<br>';
source
share