AbsOperator

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the abs of <Operand>
Associationscom.livecode.math
Summary

Absolute value operator.

Parameters
NameTypeDescription
Operand

An expression that evaluates to a number.

Example
variable tVar as Number
put the trunc of 3.9 into tVar -- tVar contains 3
Values
NameTypeDescription
return

The absolute value of Operand.

Description

The absolute value of Operand is the value of Operand if it is greater than or equal to 0, or the negation of the value of Operand if it is less than zero.

Tagsmath