I have the below problem, how to make it appear 0.00004 as string after multiplication?
$v = -0.00004;
$v = $v * -1;
echo $v; // 4.0E-5
Long story
As a result I need to save into MySQL database but no problem with that because I use below query:
$sql_insert = $conn->prepare("insert into tbl_transaction (amount) values ($v)");
However when I output to my HTML it showing 4.0E-5
. I tried to use number_format but in some cases the decimals will go far more than this so it is not a choice.