Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

PHP decimal problem!??

  • 02-01-2007 09:49PM
    #1
    Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭


    I'm trying to get a decimal to print to screnn like so 00.00 but whe it queries the DB i get the value back and then divide it and echo it to screen but i always get like this 00.0000000000 which doesn't look very nice!

    Anyone know how to stop this happening or how to format php variables to just 2 decimal places????


Comments

Advertisement
Advertisement