I'm building an order system where I want to show the money in decimals.
this works fine in some cases but in a few other cases it doesn't work like the way I do
I multiply the quantity with the cost
like
$totaal=number_format($orlqty*$orlcost,2,',','.');
in some cases the value is what it should be like 1500,00
but in some other cases it's divided by 1000 so I see 1,5
strange thing is that when I put in a value like 300 I get 300,00 but when I enter 1500 I get 1,5
and in other cases when I put in a value greater than 1000 it will work fine as well
very confusing
this works fine in some cases but in a few other cases it doesn't work like the way I do
I multiply the quantity with the cost
like
$totaal=number_format($orlqty*$orlcost,2,',','.');
in some cases the value is what it should be like 1500,00
but in some other cases it's divided by 1000 so I see 1,5
strange thing is that when I put in a value like 300 I get 300,00 but when I enter 1500 I get 1,5
and in other cases when I put in a value greater than 1000 it will work fine as well
very confusing
