I was looking at the new template for circulation.pl, and noticed that when the page was reporting a member's outstanding debt, it came out like '2.00000'. I'm wondering if there is ever a time when we want displays like this to show so many decimal points? Perhaps in Acquisitions, if you're working with exchange and taxation rates (although I would think numbers there would be rounded up as well)? Does Koha need a 'currency format' preference like it has a date format preference? Or would everyone be happy with just two decimal places? Thanks, Owen
On 2004-11-03 21:08:44 +0000 Owen Leonard <oleonard@athenscounty.lib.oh.us> wrote:
[...] Does Koha need a 'currency format' preference like it has a date format preference? Or would everyone be happy with just two decimal places?
I can't think of a currency with more than two decimal places, but a currency format preference is probably the safest route forwards. Actually, isn't it normal to use a fixed-precision number at the database level for money? This may be better as an installer or updatedatabase option. -- MJR/slef My Opinion Only and not of any group I know Creative copyleft computing - http://www.ttllp.co.uk/ Unsolicited attachments to the pipex address deleted Will HLF fund tree-killings? http://www.thewalks.co.uk/
MJ Ray wrote:
I can't think of a currency with more than two decimal places, but a currency format preference is probably the safest route forwards.
Actually, isn't it normal to use a fixed-precision number at the database level for money?
I wondered if there were times when more decimal places were necessary because of calculation of taxes or exchange rates or something like that. Since we don't actually *use* the Acquisitions module, I don't have any experience in that department. If the answer is yes, two decimal places is fine, should I go ahead and format output where I find it while we're waiting for a system-wide currency format preference? Thanks for everyone's advice, -- Owen
On 2004-11-04 16:25:21 +0000 Owen Leonard <oleonard@athenscounty.lib.oh.us> wrote:
If the answer is yes, two decimal places is fine, should I go ahead and format output where I find it while we're waiting for a system-wide currency format preference?
Release manager's decision. I won't make this change in 2.0.x (and it's soon going to be obsoleted anyway). -- MJR/slef My Opinion Only and not of any group I know Creative copyleft computing - http://www.ttllp.co.uk/ Unsolicited attachments to the pipex address deleted Will HLF fund tree-killings? http://www.thewalks.co.uk/
participants (2)
-
MJ Ray -
Owen Leonard