0
Good evening, everyone.
I have this function to convert the American value to Brazilian
function Real($valor){
$valor_real = number_format($valor,2, ',', '.');
return $valor_real;
}
It works fine, but qdo will display houses with Ex. 1.250,00 it displays only 1,00
Can you help me?
I call function that way
R$ <?=Real($lnP['produto_atributo_preco']); ?>
In mysql the field is as DECIMAL(10,2) was as VARCHAR and yet this with this error
Thank you
In the bank this value is stored as "1250.00"? You can confirm this?
– Woss
records @Andersoncarloswoss 1,250.00
– Betinho Silva