반올림 계산기

Rounding Calculator

반올림 계산기란?

지정한 자릿수에서 반올림·올림(切上)·내림(切下)을 계산하는 도구입니다. 소수점 이하 자리뿐 아니라 십의 자리·백의 자리 같은 정수 자릿수 지정도 가능합니다.

사용 방법

값과 자릿수를 입력합니다. 자릿수 2는 소수 둘째 자리까지 남기고, 0은 정수로, −2는 백의 자리에서 처리합니다. 반올림·올림·내림 중 방식을 선택하고 계산하기를 누릅니다.

공식·참고표

계수 factor = 10^자릿수를 사용해 round(value × factor) / factor (올림·내림은 Math.ceil/Math.floor로 치환) 방식으로 계산합니다.

예시 (값 1234.5678)
자릿수반올림올림내림
21234.571234.571234.56
0123512351234
−2120013001200
What is the Rounding Calculator?

A tool for computing round, ceil, and floor at any specified digit — not just decimal places, but also tens, hundreds, and other integer place values.

How to use it

Enter a value and a digit. A digit of 2 keeps two decimal places, 0 rounds to an integer, and −2 operates at the hundreds place. Choose round, ceil, or floor, then press Calculate.

Formula & reference

Using a factor factor = 10^digit, the result is round(value × factor) / factor (substituting Math.ceil/Math.floor for ceil/floor mode).

Example (value 1234.5678)
DigitRoundCeilFloor
21234.571234.571234.56
0123512351234
−2120013001200
자릿수는 어떻게 입력하나요?
자릿수에 양수를 입력하면 소수점 이하 해당 자리에서, 0을 입력하면 소수점 첫째 자리에서 정수로, 음수를 입력하면 정수 부분의 십·백·천의 자리 등에서 처리됩니다. 예를 들어 자릿수 2는 소수 둘째 자리, 자릿수 −2는 백의 자리를 의미합니다.
반올림·올림·내림의 차이는 무엇인가요?
반올림은 지정 자리 다음 숫자가 5 이상이면 올리고 미만이면 버립니다. 올림(切上)은 값이 조금이라도 있으면 무조건 다음 자리로 올리며, 내림(切下)은 지정 자리 다음을 무조건 버립니다. 예를 들어 12.34를 소수 첫째 자리로 처리하면 반올림 12.3, 올림 12.4, 내림 12.3입니다.
음수를 입력해도 반올림 규칙이 같나요?
네, 이 계산기는 절대값 기준으로 자리를 계산한 뒤 부호를 유지합니다. 다만 올림과 내림은 음수에서 방향이 반대로 느껴질 수 있습니다 — 예를 들어 −12.34를 소수 첫째 자리로 올림하면 −12.3(0에 더 가까운 쪽)이 됩니다.
How do I specify the digit?
A positive digit operates at that decimal place, 0 rounds to an integer, and a negative digit operates at the tens, hundreds, thousands place, etc. of the integer part. For example, digit 2 means the second decimal place, and digit −2 means the hundreds place.
What's the difference between round, ceil, and floor?
Round rounds up if the next digit is 5 or more, and down otherwise. Ceil always rounds up to the next place if there's any remainder, while floor always drops everything after the specified place. For example, processing 12.34 at one decimal place gives round 12.3, ceil 12.4, floor 12.3.
Do the rules stay the same for negative numbers?
Yes — this tool computes the place value based on the absolute value and then restores the sign. However, ceil and floor may feel reversed for negatives — for example, ceiling −12.34 at one decimal place gives −12.3 (closer to zero).

안내: 본 계산기는 일반적인 수학 계산 결과를 제공합니다. 컴퓨터의 부동소수점 연산 특성상 매우 복잡한 소수 계산에서는 미세한 오차가 발생할 수 있으므로, 정밀한 검증이 필요한 계산에는 별도 확인을 권장합니다.

Note: This calculator provides standard mathematical results. Due to floating-point behavior, very complex decimal calculations may show tiny rounding differences — please double-check figures where precise verification is required.