I have large numbers and their decimals points. Here are some examples and what should return:
Number: 300000 Decimals: 8 Should return: 0.00300000 Number: 7000
Divide by 10 to the power of the number of decimals:
$result = $number / (10 ** $decimals);
Divide by ten to the power of decimals?
$n = 700000000; $d = 8; Echo $n/pow(10,$d);
https://3v4l.org/MdoW1