I want to make a multiplication on a float number but the result doesn't display the float.
$diver->prix_unitaire = $prix_unitaire;
$montant_total = $prix_unitaire * 1;
$diver->prix_total = $montant_total;
dd($diver);
I get 1500 and but it should be 1500,25. Could someone help me?
#attributes: array:6 [▼
"facture_id" => 3
"quantite" => "2"
"dt_amende" => Carbon @1513798542 {#1030 ▶}
"saison_id" => 1
"prix_unitaire" => "1500,25"
"prix_total" => 1500
]