gmp_neg
(PHP 4 >= 4.0.4, PHP 5)
gmp_neg — Negate number
Opis
resource gmp_neg
( resource $a
)
Returns the negative value of a number.
Parametry
- a
-
Może być zarówno numerem GMP zasób, lub numerycznym łańcuchem znaków, który można skonwertować z liter do liczb.
Zwracane wartości
Returns -a , as a GMP number.
Przykłady
Example #1 gmp_neg() example
<?php
$neg1 = gmp_neg("1");
echo gmp_strval($neg1) . "\n";
$neg2 = gmp_neg("-1");
echo gmp_strval($neg2) . "\n";
?>
Powyższy przykład wyświetli:
-1 1
gmp_neg
There are no user contributed notes for this page.
