PHP Manual
round
Description
float round ( float val [, int precision] )
Returns the rounded value of val to
specified precision
(number of digits after the decimal point).
precision can also be negative or zero (default).
Note: PHP doesn't handle strings like "12,300.2" correctly by default. See converting from strings.
Note: The
precisionparameter was introduced in PHP 4.
Parameters
valThe value to round
precisionThe optional number of decimal digits to round to, defaults to 0
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




