바닥 기능

Floor는 항상 음의 무한대 방향으로 내림됩니다. 특히 음수의 경우 중요합니다.

🔢
반올림 계산기
숫자를 입력하고 반올림 환경설정을 선택하세요.
|
🪄 빠른 예

작동 방식

1

단계 1

Choose the target precision or place value.

2

단계 2

Drop extra digits and move downward toward negative infinity.

3

단계 3

Return a value that is never greater than the original at that precision.

실제 사례

Examples highlight where floor and truncate differ on negatives.

입력 대상 방법 결과
2.99 가장 가까운 정수 반올림(바닥) 2
-2.01 가장 가까운 정수 반올림(바닥) -3
12.309 가장 가까운 100분의 1(2dp) 반올림(바닥) 12.30

일반적인 실수

출력을 검증할 때 자주 발생하는 반올림 오류를 피하세요.

  • Treating floor as simple digit cut-off.
  • Expecting floor to behave like nearest rounding.
  • Using floor when toward-zero behavior is required.
  • Ignoring sign when validating test results.

자주 묻는 질문

Is floor the same as truncate?
No. Floor moves toward negative infinity while truncate moves toward zero.
How does floor work for negatives?
Negative numbers become more negative whenever there is a remainder.
When is floor useful?
Floor is useful for conservative lower-bound calculations.
Can I compare floor and ceiling quickly?
Yes. Related links let you test the same inputs under both methods.