Function Entry: LOG

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

Function Entry: LOG

Name

log

Class

Function

Syntax

(log num)

Arguments and Values

  • num: integer or real, a positive number.

Description

Returns the natural logarithm of num (base e). The base is fixed; AutoLISP does not provide a multi-argument form.

Return Values

A real number.

Side Effects

None.

Examples

  • (log 4.5) returns 1.50408.
  • (log 1.22) returns 0.198851.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible. The BricsCAD-only log10 is documented separately in chapter 24.
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.