Home > PHP > Function > GMP > gmp_neg()

gmp_neg()

gmp_neg - Negate number

Syntax

resource gmp_neg (resource $a)

Arguments

  • a - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.

Description

Returns the negative value of a number.

Version

PHP 4.0.4, 5

Return value

Returns - a, as a GMP number.