For example, if I have 0.10456, will it be 10.5%? Round (PHP3, PHP4) round -- returns floatround (floatval [, intprecision]) based on the specified precision (number of digits after decimal point) result of rounding. Precision can also be negative or zero (default ). For example, if I have 0.10456, will it be 10.5%?
Round
(PHP 3, PHP 4)
Round -- rounds a floating point number
Description
Float round (float val [, int precision])
Returns the result of rounding val by the specified precision (number of digits after decimal point. Precision can also be negative or zero (default ).
Note:
PHP cannot properly process strings similar to "12,300.2" by default. For more information, see convert a string to a numeric value.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service