Display the text box

gmp_neg()

« gmp_mul | gmp_nextprime »
<?php
$resource 
gmp_neg (
    
  // resource $a
);

// shows the result
$string gmp_strval($resource);
?>
Result
$resource = 'GMP instance'
$string = '-1'
Examples
#1 gmp_neg  ("1")
#2 gmp_neg  ("-1")
See also
gmp_abs, gmp_strval