When executing this code:
$valor_base=495.45;
$valor_mul=0.25;
$porcen=0.80;
$mul=2;
$res=$valor_base*$valor_mul;
$res+=($mul==2) ? number_format($res*0.80) : 0.00;
echo $res;
This in theory should give me 222.95 but instead it gives me 222.86. Why does this happen?