number_format() expects parameter 1 to be float, string given
metodo PHP
sc_lookup(ds, "select sum(a_valo) from itens_requisicao where a_nume={a_nume}");
$tota = {ds[0][0]};
$soma = number_format($tota, 2, ',', '');
sc_master_value('a_total',$soma);
$total_salvar = floatval(str_replace(',','.',str_replace('.','',$soma)));
sc_exec_sql ("UPDATE requisicoes SET a_total=$total_salvar WHERE a_nume={a_nume}");