Need something like intVal() but for bigger numbers, for example: 100001416147426.
Is there a function like this in php? Can't find it.
You should use BC Math, it is designed to numbers of any size with PHP.
The BC Math extensions offers several mathematic functions like:
bcadd Add two arbitrary precision numbersbccomp — Compare two arbitrary precision numbersbcsqrt Get the square root of an arbitrary precision numberOn the PHP documentation site there is a small code example by Charles to round a long number!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With