Re: [PHP] number_format() buggy round when usind database resultset

2001-01-26 Thread Richard Lynch
> I'm finding some problems on using number_format($value, $decimal, ",", > ".") when I have a value comming from a resultset (database query > results)... > If I had something like '123.45', using number_format it will return > '123,00'. > I think this happens because my value is a string and PHP

[PHP] number_format() buggy round when usind database resultset

2001-01-25 Thread Lucas Persona
Hi, I'm finding some problems on using number_format($value, $decimal, ",", ".") when I have a value comming from a resultset (database query results)... If I had something like '123.45', using number_format it will return '123,00'. I think this happens because my value is