This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

abs()

Deprecated in 5.0.

Please use Math::Abs instead.

abs(number): float

Returns the absolute value of the number.

Table 1. Parameters

number

Float

Input value.

Return

Absolute value of the input.

>>> abs(12.3)
12.3
>>> abs(-0.307)
0.307