From: Ricard A. <pak...@gm...> - 2013-08-20 02:10:02
|
Hi Exson: I think a long decimal number is needed, the question is "how long?". One of my modifications to Currencies.php was made to allow the use of more decimals, up to 8. I would be happy to use even 1 or 2 more, and users in some countries as well http://en.wikipedia.org/wiki/Least-valued_currency_unit. But if your question was to change from type DOUBLE to type DECIMAL and limiting the number of decimals to 8 or 10, I think it is a wise change. We detected some errors due to rounding in exchange rate calculation. Try to sell to a customer in a different currency. Then chek the balance account for customer's debt and the customer's receivable report, if translated to functional rate, it's different. Small differences but differences after all :-) Just my 0,0000000002 cents. Regards, Ricard 2013/8/19 ExsonQu <hex...@gm...> > *Hi,Phil:* > > Thank you for your reply. > Yes, it's a Capital "Variable". The problem is that it retrieve a > very long decimal number from the database and calculate it as it. Is it > reasonable? > > Best regards! > > Exson > > > > > > -- > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Is-the-exchange-rate-right-tp4656722p4656724.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |