From 06307c0335b8493d5faffa4a057ccd78f16ee017 Mon Sep 17 00:00:00 2001 From: Marc Stibane Date: Wed, 4 Oct 2023 17:37:00 +0200 Subject: Added info about the built-in currency formatter (iOS) --- design-documents/051-fractional-digits.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'design-documents') diff --git a/design-documents/051-fractional-digits.rst b/design-documents/051-fractional-digits.rst index 99929f30..21930d1b 100644 --- a/design-documents/051-fractional-digits.rst +++ b/design-documents/051-fractional-digits.rst @@ -32,6 +32,12 @@ Usually, all these three numbers have the same value, which means that in case o cent/penny values (but not a fraction of those), these cents/pennies are always shown (even if they are 0) as two normal digits after the decimal separator, and fractions of a cent/penny are rendered as SuperScriptDigits, but only if they are not trailing zeroes. +iOS has a built-in currency formatter, which knows how to deal with thousands-separators and where to apply them +(e.g. India uses a mixture of hundreds and thousands instead of putting the separator after each 3 digits like western currencies). +However, this formatter will round after two (or three) fractional digits and thus cannot be used for the whole amount. + +(please add information about Android and WebEx here) + Proposed Solution ================= @@ -46,6 +52,12 @@ Proposed Solution let isCurrencyNameLeading: Bool // true for “$ 3.50”; false for “3,50 €” } +For iOS, we plan to format the integer part of the amount with the built-in currency formatter, then add the fractional part +according to this document. + +(please add information about Android and WebEx here) + + Definition of Done ================== -- cgit v1.2.3