Skip to content
Chung Leong edited this page Jan 10, 2022 · 3 revisions

abs - Absolute value

mixed abs( mixed $x )

abs() returns the absolute value of x.

Parameters:

x - The number to process. It can be a scalar or an array. Unsigned integers will be typecast to signed.

Return Value:

The absolute value of x. If x is an array, the return value will also be an array.

Version

1.0 and above.

Clone this wiki locally