Here is my code example:
$v_quantidade = 10;
$v_preco = '3,68' ;
$v_total = $v_preco * $v_quantidade;
echo "$v_total";
My variable $ v_quantity returns it integers, for example: 3..5..10..20..etc ...
My variable $ v_preco is the price, for example: 3.68.
When I do the above calculation it is returning wrong, this calculation of the example is returning 10.
What am I doing wrong?
And if possible also another question together, some prices may come like this: 3,689 As I present in php only the 3,68