lundi 28 octobre 2019

How to multiply decimal value in laravel?

I want to multiply quantity and price. Both are decimal value .

$grand_total = $grand_total + (decimal('$result->balance',15,2) * decimal('$result->purchase_price',15,2));

What is the right way ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire