try rounding it first

http://www.php.net/manual/en/function.round.php

Zavaboy wrote:

What about if I had 2.856 that function will make it 2.86.


"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] How can I make them have at least 2 decimal places? [/snip]

RTFM at http://www.php.net/number_format

HTH!




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to