[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: show code block
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: show code block |
Date: |
Wed, 04 Oct 2023 15:35:29 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new e6d94fb4 show code block
e6d94fb4 is described below
commit e6d94fb48150fa22f248735765ab7f3e00aab1dc
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Oct 4 10:35:21 2023 -0300
show code block
---
design-documents/051-fractional-digits.rst | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/design-documents/051-fractional-digits.rst
b/design-documents/051-fractional-digits.rst
index 45a37d1f..99929f30 100644
--- a/design-documents/051-fractional-digits.rst
+++ b/design-documents/051-fractional-digits.rst
@@ -1,5 +1,5 @@
DD 51: Fractional Digits
-###############
+#########################
Summary
=======
@@ -36,13 +36,15 @@ after the decimal separator, and fractions of a cent/penny
are rendered as Super
Proposed Solution
=================
-public struct ScopedCurrencyInfo: Codable, Sendable {
- let decimalSeparator: String // e.g. “.” for $ and ¥; “,”
for €
- let numFractionalInputDigits: Int // how much digits the user
may enter after the decimalSeparator
- let numFractionalNormalDigits: Int // €,$,£: 2; some arabic
currencies: 3, ¥: 0
- let numFractionalTrailingZeroDigits: Int // usually same as
numFractionalNormalDigits, but e.g. might be 2 for ¥
- let isCurrencyNameLeading: Bool // true for “$ 3.50”; false
for “3,50 €”
-}
+ .. code-block:: swift
+
+ public struct ScopedCurrencyInfo: Codable, Sendable {
+ let decimalSeparator: String // e.g. “.” for $ and ¥;
“,” for €
+ let numFractionalInputDigits: Int // how much digits the
user may enter after the decimalSeparator
+ let numFractionalNormalDigits: Int // €,$,£: 2; some arabic
currencies: 3, ¥: 0
+ let numFractionalTrailingZeroDigits: Int // usually same as
numFractionalNormalDigits, but e.g. might be 2 for ¥
+ let isCurrencyNameLeading: Bool // true for “$ 3.50”;
false for “3,50 €”
+ }
Definition of Done
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: show code block,
gnunet <=