Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 402 Bytes

abs.adoc

File metadata and controls

35 lines (27 loc) · 402 Bytes

abs()

Important

Deprecated in 5.0.

Please use [func-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.

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