Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    rounding numbers

    hey guys in my database of my catalogue i have a table called order details.

    in there there is orderis tax1 tax2 grand total

    now when i echo the query to print it shows all the decimals

    12.3336

    how can i get it down to 12.33?thx

  • #2
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #3
    New Coder
    Join Date
    Sep 2005
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts
    done thx

    echo round($row3['Taxe2'], 2);


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •