I have this code :
$number_1 = 0.01;
$number_2 = 3.22321;
$result = $number_1 * $number_2;
and the result is : 0.0322321
how to have decimal digits of $result
same with $number_1
, in this case, I'm expecting 0.03
(2 digits after comma).
update : $number_1
doesn't always have 2 digits after comma. it's random.