I'm currently trying to do math with large decimals. This works fine:
<?php
$math = 99 + 0.0001;
echo $math;
?>
Output: 99.0001
However, when I try to add with decimals with more than 12 decimal places, I do not receive the expected output:
<?php
$math = 99 + 0.0000000000001;
echo $math;
?>
Output: 99
How can I make it so that if I add with a decimal that has more than 12 decimal places, that the result will still have the exact answer without rounding? For example:
<?php
$math = 99 + 0.0000000000001;
echo $math;
?>
Output: 99.0000000000001