ROUND function rounds a number to a specified number of digits. Usage: ROUND(number, num_digits), where number is the target number, num_digits is the number of rounding digits, positive values are rounded to the right, and negative values are rounded to the left. Steps: 1. Divide by 10 to the power of num_digits; 2. Round according to the rules; 3. Multiply by 10 to the power of num_digits.
Meaning of ROUND function
The ROUND function is used to round a number to a specified number of digits.
Syntax
<code>ROUND(number, num_digits)</code>
Parameters
Working principle
ROUND function works through the following steps:Example
The above is the detailed content of What does round function mean?. For more information, please follow other related articles on the PHP Chinese website!