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 ?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BPDa7E
via IFTTT

Aucun commentaire:

Enregistrer un commentaire