Berserk Docs
Scalar FunctionsMath Functions

abs

Returns the absolute value of a numeric expression, preserving the input type.

Syntax

abs(x)

Parameters

Prop

Type

Returns: real

Examples

Example 1

print abs(- 3.14)
print_0 (real)
3.14

On this page