Hi,
I have a string, say for instance 0.001
I need to split this amount into two different amounts - one with 1.5% and the other with 98.5%.
What I need is the returning amounts in the same format, so like this...
1.5% = 0.000015
98.5% = 0.000985
But when I do the calculation in PHP using this code.
$total_amount = 0.001;
$percentage = 1.5;
$new_amount = ($percentage / 100) * $total_amount;
I end up getting 5.0E-6
What am I doing wrong? I am honestly very bad when it comes to basic mathematics. This has been driving me insane all day. I've tried converting that produced power number into the correct format but to no success.
Thank you so much for any help.