summaryrefslogtreecommitdiff
path: root/design-documents
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-01 11:37:08 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-01 11:37:13 +0100
commit8f7bf709b7ad5263096749a5620bf4eec5639d64 (patch)
tree1ec5c2b9df6e0ec98dd1c3673bc5da7d750254bc /design-documents
parent7b4d3fd5e33197b747e5a9bff15834da8c2a8325 (diff)
downloaddocs-8f7bf709b7ad5263096749a5620bf4eec5639d64.tar.gz
docs-8f7bf709b7ad5263096749a5620bf4eec5639d64.tar.bz2
docs-8f7bf709b7ad5263096749a5620bf4eec5639d64.zip
-document new -k option
Diffstat (limited to 'design-documents')
-rw-r--r--design-documents/051-fractional-digits.rst10
1 files changed, 3 insertions, 7 deletions
diff --git a/design-documents/051-fractional-digits.rst b/design-documents/051-fractional-digits.rst
index acd19f14..4321fd53 100644
--- a/design-documents/051-fractional-digits.rst
+++ b/design-documents/051-fractional-digits.rst
@@ -23,15 +23,11 @@ There was already a specification for ScopedCurrencyInfo - which got renamed to
We need three core characteristics for fractional digits for each currency:
-e) the number of fractional digits e in [0..8] the user may 'e'nter in a TextInputField
+ e) the number of fractional digits e in [0..8] the user may 'e'nter in a TextInputField
-n) the number of fractional digits n in [0..8] to be rendered as 'n'ormal characters (same font and size as the integer digits).
- All additional fractional digits will be rendered as SuperScriptDigits as known from gas filling stations.
- The UI should never round or truncate any amount, but always render all existing digits (except trailing zeroes, see c).
+ n) the number of fractional digits n in [0..8] to be rendered as 'n'ormal characters (same font and size as the integer digits). All additional fractional digits will be rendered as SuperScriptDigits as known from gas filling stations. The UI should never round or truncate any amount, but always render all existing digits (except trailing zeroes, see c).
-z) the number of fractional digits z in [0..8] to be rendered as trailing 'z'eroes (including SuperScript digits).
- E.g. if z = 2 (and n = 2), then render $5 as `$ 5.00´.
- If z = 3 (and n = 2), then render $5 as `$ 5.00⁰´ with two normal trailing zeroes and one superscript trailing zero.
+ z) the number of fractional digits z in [0..8] to be rendered as trailing 'z'eroes (including SuperScript digits). E.g. if z = 2 (and n = 2), then render $5 as ``$ 5.00``. If z = 3 (and n = 2), then render $5 as ``$ 5.00⁰`` with two normal trailing zeroes and one superscript trailing zero.
The values e, n, and z are independent from each other. Each could be any value
from 0 to 8. However, when a user enters an amount, s/he should be able to input