Re: [PHP] Fixe Point Decimal Data type

2009-12-17 Thread LinuxManMikeC
On Thu, Dec 17, 2009 at 7:21 AM, Raymond Irving wrote: > Hello, > > Is there a way to represent numeric values as fixed point decimals in PHP? If > not, why was this datatype not added? > > I think is very important to have fixed point decimals when working with > money values. This would make i

Re: [PHP] Fixe Point Decimal Data type

2009-12-17 Thread LinuxManMikeC
On Thu, Dec 17, 2009 at 7:49 AM, Floyd Resler wrote: > I may be over-simplifying or not completely understanding fixed point > decimals, but would number_format work? > > Take care, > Floyd > Over-simplifying just a touch... http://en.wikipedia.org/wiki/Floating_point_error#Accuracy_problems --

Re: [PHP] Fixe Point Decimal Data type

2009-12-17 Thread Floyd Resler
I may be over-simplifying or not completely understanding fixed point decimals, but would number_format work? Take care, Floyd On Dec 17, 2009, at 9:21 AM, Raymond Irving wrote: > Hello, > > Is there a way to represent numeric values as fixed point decimals in PHP? If > not, why was this data

[PHP] Fixe Point Decimal Data type

2009-12-17 Thread Raymond Irving
Hello, Is there a way to represent numeric values as fixed point decimals in PHP? If not, why was this datatype not added? I think is very important to have fixed point decimals when working with money values. This would make it much easy than having to use the BCMath functions. If PHP had su