← All docs

gmp_com()

One's complement of a GMP number.

gmp_com()

function gmp_com(object|string|int $num): object

One’s complement of a GMP number.

Parameters:

  • $num (object|string|int)

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_com is implemented in the compiler, see the internals page.