abs()

Math / Calculation

Description

Calculates the absolute value (magnitude) of a number.

Syntax

float abs(float x)

Parameters

NameTypeDescription
xfloatnumber to process

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...