hi i want the online store prices to have only 2 decimal digits. the prices in mysql database already have 2 decimal digits but when i calculate the VAT <?php echo $row['price']*1.19;?> PHP: the decimal digits are more than 2 in many cases. how i can set only 2 decimal digits? thanks in advance.
http://ca.php.net/number-format <?php $number = 1234.5678; // english notation without thousands seperator $english_format_number = number_format($number, 2, '.', ''); // 1234.57 ?> PHP: