PHP » PYTHON |
login |
register |
about
|
round(val) round(val, precision) round(PHP 4, PHP 5) round — Rounds a float Description
float round
( float $val
[, int $precision= 0
[, int $mode= PHP_ROUND_HALF_UP
]] )
Returns the rounded value of val to specified precision (number of digits after the decimal point). precision can also be negative or zero (default).
Parameters
Return ValuesThe rounded value Examples
Example #1 round() examples
<?php
Changelog
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|