I'm building a web application with CakePHP. This application will use lots of financial data, and perfect accuracy is required.
As you may now, floats shouldn't be used when working with money/currency/financial data (Why not use Double or Float to represent currency?).
In Delphi I know I can use the Currency datatype, in Java I can use BigDecimal and in .NET there is the Decimal datatype, but which datatype or functions must I use with CakePHP? What should I do to avoid rounding and accuracy problems? Must I store all my data as integers and divide by 100 when displaying it?
Thanks for your help!