working with decimal numbers in php
Posted
by The Worst Shady
on Stack Overflow
See other posts from Stack Overflow
or by The Worst Shady
Published on 2010-05-17T11:26:31Z
Indexed on
2010/05/17
11:30 UTC
Read the original article
Hit count: 306
I want to somehow round the numbers for a rating system in php like this:
4.6667 = 4.6
5.0001 = 5.1
is there any way to do that? (BTW i read the datas from a database)
© Stack Overflow or respective owner