gmp_neg

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_neg - Negate number
Manual
Code Examples

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

Returns the negative value of a number.

Parameters

num

A GMP object, an int or a numeric string.

Return Values

Returns -num, as a GMP number.

Example of gmp_neg

Show all examples for gmp_neg

PHP Version: