I need to subtract 1 from a number 294867828828426241in PHP. However when i do
$a = 294867828828426241 - 1;
I get a floating point number 2.94867828828E+17. Which at resolution number_format()gives the original number.
How can I get the correct value, please?
This should be able to work with different numbers.
source
share