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