-1
I am trying to convert the string value '1234,56' float
, but I found this way of converting number but comes only in integer. In which way I can bring the values in float ?
Result looks like this : float
1234
But I need the values after the comma...
$val_orcamento = $this->request->post['valorca'];
$quantidade = $this->request->post['quantidade'];
$valor_unit = $this->request->post['valor'];
$varquantidade[0] = ((float)$quantidade[0]*1.00);
$varunit[0] = ((float)$valor_unit[0]*1.00);
Thank you very much saw , it worked here hehe , I was so involved in the code that I forgot that PHP reads only point :)
– Douglas Szapak