diff options
author | Marc Stibane <marc@taler.net> | 2023-10-04 17:37:00 +0200 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2023-10-04 17:37:00 +0200 |
commit | 06307c0335b8493d5faffa4a057ccd78f16ee017 (patch) | |
tree | 4c9b569e24968bedae70f78f0cf7028bd7ecb515 | |
parent | e6d94fb48150fa22f248735765ab7f3e00aab1dc (diff) | |
download | docs-06307c0335b8493d5faffa4a057ccd78f16ee017.tar.gz docs-06307c0335b8493d5faffa4a057ccd78f16ee017.tar.bz2 docs-06307c0335b8493d5faffa4a057ccd78f16ee017.zip |
Added info about the built-in currency formatter (iOS)
-rw-r--r-- | design-documents/051-fractional-digits.rst | 12 |
1 files changed, 12 insertions, 0 deletions
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 ================== |