se faccio questo
questa condizione mi ritorna FALSE.....ma perchè? mi dovrebbe ritornare TRUECodice PHP:
$totalProduct= $chip->getTotalProduct(); // 0.08
$differenza = $request->request->get('mc_gross') - $product->getShipping(); // 10.08-10.00=0.08
if($totalProduct == $differenza){
return TRUE;
}else{
return FALSE;
}
ho provato a fare il gettype di quelle due variabili
gettype($totalProduct) and gettype($differenza)...risultato string and doble....
potrebbe essere questo il problema che mi rende quella condizione Falsa anzichè vera?