Function Entry: CEILING

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: CEILING

Name

ceiling

Class

BricsCAD Extension Function

Syntax

(ceiling num)

Description

Returns the smallest integer greater than or equal to num.

Return Values

Vendor-defined; see Source Notes.

Side Effects

Vendor-defined.

Examples

Not documented in the BricsCAD-Specific LISP Functions catalogue page.

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

See Also

  • AutoCAD has no ceiling. AutoCAD's fix truncates toward zero rather than rounding upward; portable code emulates ceiling as (if (= n (fix n)) (fix n) (1+ (fix n))) for non-negative n.

Source Notes