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);