GMP library is capable of handling floating point numbers,
This is not true. You can check this with:
echo gmp_strval(gmp_init('18')); // 18 echo gmp_strval(gmp_init('1.8')); // 0
Now you can use BCMath :
$num = bcpow('-1.7976931348623157', '308'); echo $num; echo floatval($num); // for a "prettier" format
NullUserException
source share