Skip to content

dos_median

Dale Fugier edited this page Nov 8, 2023 · 1 revision

Returns the median, or middle, of a list or series of numbers.

Syntax

(dos_median numbers)
(dos_median number1 ...)

Parameters

numbers

A list of numbers.

number1 ...

A series of numbers.

Returns

The median value, if successful.

nil on error.

Example

Command: (dos_median '(1 2 3 4 5 6 7 8 9))
5
Command: (dos_median 1 2 3 4 5 6 7 8 9)
5
Clone this wiki locally