Function Entry: EXPT

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

Function Entry: EXPT

Name

expt

Class

Function

Syntax

(expt number power)

Arguments and Values

  • number: integer or real, the base.
  • power: integer or real, the exponent.

Description

Returns number raised to the power power.

Return Values

If both arguments are integers, the result is an integer; otherwise the result is a real.

Side Effects

None.

Examples

  • (expt 2 4) returns 16.
  • (expt 3.0 2.0) returns 9.0.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: documented under the BricsCAD-only name power and presumed to support expt. The BricsCAD analogue is recorded separately in chapter 24 — see Phase 4 cross-reference.
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.

See Also

  • BricsCAD analogue: power (chapter 24). AutoCAD users portably write (expt base exp); BricsCAD users may use either.