Function Entry: NUMBERP

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

Function Entry: NUMBERP

Name

numberp

Class

Function

Syntax

(numberp item)

Arguments and Values

  • item: any AutoLISP value (integer, real, string, list, subroutine, ename, T, or nil).

Description

Verifies that item is a numeric value, that is, an integer or a real.

Return Values

Returns T if item is a real or integer; otherwise returns nil.

Side Effects

None.

Examples

  • (numberp 4) returns T.
  • (numberp 3.8348) returns T.
  • (numberp "Howdy") returns nil.
  • After (setq a 123), (numberp a) returns T.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible.
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.

Source Notes