Quick answer

For x = −2.4: ⌈x⌉ = −2 and ⌊x⌋ = −3.

Formula

  • ⌈x⌉ points toward +∞
  • ⌊x⌋ points toward −∞

Introduction

Students often memorize one rule but mix the two on negative inputs.

Review the ceiling definition if you need the upward rule in plain language.

Test values on the calculator, then read formula notation when you must justify each column with intervals.

Side-by-side meaning

Ceiling is the rightward integer marker: smallest integer ≥ x.

Floor is the leftward integer marker: greatest integer ≤ x.

On the number line, ceiling looks right from x; floor looks left from x.

For integers, both functions return x. The difference shows up on non-integer inputs.

Sample pairs

  • x = 4.2 → ⌈x⌉ = 5, ⌊x⌋ = 4
  • x = −2.4 → ⌈x⌉ = −2, ⌊x⌋ = −3
  • x = 7 → ⌈x⌉ = 7, ⌊x⌋ = 7
  • ⌈x⌉ = −⌊−x⌋

Integers always match for both functions.

For negative decimals, ceiling is less negative than floor. That single sentence prevents most sign swaps.

Identity ⌈x⌉ = −⌊−x⌋ links the two when you prefer algebra over sketches.

Comparison steps

  1. Compute ceiling. Smallest integer ≥ x.
  2. Compute floor. Greatest integer ≤ x.
  3. Compare. Check sign cases first. Ceiling should never be less than floor for the same x.
  4. Label the problem. Write whether the story needs whole containers (often ceiling) or leftover-friendly grouping (sometimes floor).

Real-world split

Capacity planning often uses ceiling: partial trucks still count as a full truck in the plan.

Index offsets sometimes use floor: the last incomplete block may be ignored depending on API rules.

Billing per started hour often uses ceiling; billing per completed hour may use floor. Read the policy before picking a function.