gmp_abs

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_abs - Absolute value
Manual
Code Examples

gmp_abs( GMP|int|string$num ): GMP

Get the absolute value of a number.

Parameters

num

A GMP object, an int or a numeric string.

Return Values

Returns the absolute value of num, as a GMP number.

Example of gmp_abs

Show all examples for gmp_abs

PHP Version: