rounding a number 1.232344432 to 1.23
Posted: Fri Nov 05, 2004 2:20 pm
round a number 1.232344432 to 1.23 I thought float would do it but it still displays 1.232344432. I would like to just display 1.23. Not sure how?
Thanks
Thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
float round ( float val [, int precision])
Code: Select all
round(1.232344432, 2)