Function Entry: MIN

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

Function Entry: MIN

Name

min

Class

Function

Syntax

(min [number number ...])

Arguments and Values

  • number: zero or more integers or reals.

Description

Returns the smallest of the supplied numbers. With no arguments, returns 0.

Return Values

If any argument is a real, the result is a real; otherwise the result is an integer.

Side Effects

None.

Examples

  • (min 683 -10.0) returns -10.0.
  • (min 73 2 48 5) returns 2.
  • (min 73.0 2 48 5) returns 2.0.
  • (min 2 4 6.7) returns 2.0.

Availability

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