How to round to two decimal?

kakadu

No avatar

2009-06-25 11:48

Hello,

how can i round this variable price?

<?php $price = ($var1+$var2) *30.126?>



Thank you for your help.

» Quick.Cart v3.x

kakadu

No avatar

2009-06-25 11:50

sorry, this is ok

 $price = ($var1+$var2) *30.126

cgan

Avatar: cgan

2009-06-25 13:41

Perhaps read here: http://newsourcemedia.com/blog/php-round-off-decimal-or-convert-to-decimal-point/

cgan

kakadu

No avatar

2009-06-26 05:08

Thank you.

Back to top
about us | contact