gmp_sign
Sign of number
&reftitle.description;
intgmp_sign
GMPa
Checks the sign of a number.
&reftitle.parameters;
a
Either a GMP number resource in PHP 5.5 and earlier,
a GMP object in PHP 5.6 and later, or a numeric
string provided that it is possible to convert the latter to an
integer.
&reftitle.returnvalues;
Returns 1 if a is positive,
-1 if a is negative,
and 0 if a is zero.
&reftitle.examples;
gmp_sign example
]]>
&example.outputs;
&reftitle.seealso;
gmp_abs
abs