echo search result in 2 decimal places

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

echo search result in 2 decimal places

Post by adsegzy »

Hello

I need you help to display my result in 2 decimal places. Eg if I have this figure 1234.5678 in my database and i want it to display in my result page as 1234.56 or to approximate is to 1234.57
regards
phoenixrises
Forum Newbie
Posts: 8
Joined: Sun Nov 15, 2009 8:24 am

Re: echo search result in 2 decimal places

Post by phoenixrises »

Post Reply