← All docs

gmp_abs()

Absolute value of a GMP number.

gmp_abs()

function gmp_abs(object|string|int $num): object

Absolute value of a GMP number.

Parameters:

  • $num (object|string|int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_abs is implemented in the compiler, see the internals page.