https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21507
--- Comment #21 from Victor Grousset/tuxayo <[email protected]> --- (In reply to Thibaud Guillot from comment #19) > but I ask you if you agree with this particular setting : "If user active > this syspref to force usage of 3 digits after the decimal separator, > he must always enter 3 digits after separator" because it can > be hard to define if it's a decimal or thousand delimiter. Sure, okay. > If you agree with this maybe addition of 'comment 10' > algoritm and new syspref > can be the solution ? Looks good. You just need to arbitrarily decide what would "1,234" (with syspref 3 decimal digits on) mean. It's unsolvable with certainty because IRL it's unsolvable. A currency with 3 decimal digits wouldn't use arbitrarily dot or comma as a thousands separator. I think you can arbitrarily solve and pick the easiest way to implement that might still make sense functionally. And that would solve all the simple and medium difficulty cases. And would be a good step to supporting the 3 decimal digits case. And for better supports let's wait for real world feedback. As of now 3 decimal digits isn't supported at all so it's definitely step in the right direction. And with real world feedback the next increment for uncovered cases could be plane. Trying now would be hazardous. And comment 10 algo is already a big step. (In reply to Katrin Fischer from comment #20) > Could it be an option to use a library here? Someone has mentioned > ICU::Number to me, but I am not sure of the functionality. That would be great, ICU is the kind of project that should already provide an implementation for must stuff regarding this. Instead of trying in invent something to cover all cases and have it ruin by a new case. >_< (that's a lot of the story of this and bug 12310) > ICU::Number Where is it? The closest thing I found is https://metacpan.org/dist/Unicode-ICU and there is no sign of number formatting. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
