Kernel.abs

You're seeing just the function abs, go back to Kernel module for more information.

Specs

abs(number()) :: number()

Returns an integer or float which is the arithmetical absolute value of number.

Allowed in guard tests. Inlined by the compiler.

Examples

iex> abs(-3.33)
3.33

iex> abs(-3)
3