Example 1
- x = 3.14159
- k = 2
3.14
What is 3.14159 to 2 places? 3.14. The calculator keeps a dot and two digits.
Type x and k places. The calculator rounds x to k places (k cut down) and shows k decimal places. 3.14159 and 2 give 3.14. 2.5 and 0 give 3. 1.005 and 2 give 1.00.
The result is a k-place string after rounding x to k places (k cut down). 1.005 at 2 places comes out 1.00, because that is machine float rounding, not school 1.01.
Enter data and click Calculate.
Rounding to n places shortens x to k digits after the point. With 3.14159 and k = 2 school writes 3.14. The calculator rounds x to k places (k cut down), then k places again on the result, so the result is 3.14 with a dot and two digits.
k = 0 eats the whole fraction. 2.5 and 0 give 3, because rounding to 0 places of 2.5 is “3”. The display is “3” again, because k places is zero.
The fields are x and k. A negative k is treated as 0 (a negative k becomes 0). A comma in x works. 1.005 and k = 2 give 1.00, not 1.01. In machine float, 1.005 is not a clean 1 + 5/1000, so two decimal places fall to 1.00. Not a second formula, only this engine.
Floor and ceil go to an integer and never ask for k. Here k stays in the result: at 2 places you see two digits, even when they are zeros, as in 1.00.
School often teaches “5 goes up”. This calculator does not promise banker's rounding or the school half. It promises browser rounding.
3.14159 and 2 give 3.14. 2.5 and 0 give 3. 1.005 and 2 give 1.00. Rounding cuts to the places on the page.
result = x rounded to max(0, ⌊k⌋) places, shown with k digits
The calculator rounds x to k places (k cut down) and shows k decimal places. 3.14159 and 2 give 3.14. 2.5 and 0 give 3. 1.005 and 2 give 1.00.
3.14
What is 3.14159 to 2 places? 3.14. The calculator keeps a dot and two digits.
3
What is 2.5 to 0 places? 3. rounding to 0 places of 2.5 is a three.
1.00
What is 1.005 to 2 places? 1.00, not 1.01. That is machine float rounding.
3.14. Round to two places, then two places again on the result.
Shorten x to k digits after the point. k is the second field. The calculator keeps k digits, including zeros.
3. rounding to 0 places of 2.5 gives the string 3.
1.005 is not clean in machine float. two decimal places fall to 1.00, not school 1.01.
A negative k is treated as 0. You are left with rounding to an integer.
Floor always eats the fraction toward −∞. Here k can leave 3.14.
Yes. 3.14159 and 3,14159 at k = 2 both give 3.14.
No. It promises browser rounding, not a notebook rule.
The display calls k decimal places. At k = 2 the two zeros stay.
On the ceiling page. There is no k there.
The calculator computes the same formula as the definition below.
Page updated in 2026.