gmp_testbit()
function gmp_testbit(object|string|int $num, int $index): bool
Tests a bit in a GMP number.
Parameters:
$num(object|string|int)$index(int)
Returns: bool
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how gmp_testbit is implemented in the compiler, see the internals page.