how i can set only 2 demical digits to my prices?

Discussion in 'PHP' started by Kyriakos, Apr 16, 2008.

  1. #1
    hi

    i want the online store prices to have only 2 demical digits. the prices in mysql database already have 2 demical digits but when i calculate the VAT
    <?php echo $row['price']*1.19;?>
    PHP:
    the demical digits are more than 2 in many cases. how i can set only 2 demical digits?

    thanks in advance.
     
    Kyriakos, Apr 16, 2008 IP
  2. CreativeClans

    CreativeClans Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0