MATHEMATICS · CALCULATOR

四舍五入计算器

Enter values to see results and the formula.

Input parameters

Inputs and calculations stay in this browser.

RESULT

Calculate

Example values are ready

Review the inputs, then select Calculate.

Calculation formula

计算结果 = (floor(x*10**digits+.5) if x>=0 else -floor(-x*10**digits+.5))/10**digits

x
Value
digits
保留小数位数
以最近值舍入,正好一半时远离零;负位数表示十位、百位等。

Related formulas and subjects

More calculators