Skip to content

dos_abs

Dale Fugier edited this page Nov 8, 2023 · 2 revisions

Returns the absolute value of a number, or the numerical value of a number without regard to its sign.

Syntax

(dos_abs number)

Parameters

number

The number.

Returns

The absolute value if successful.

nil on error.

Example

Command: (dos_abs 3.14)
3.14

Command: (dos_abs -3.14)
3.14
Clone this wiki locally