[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: we have fixed decimal places, not fi
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: we have fixed decimal places, not fixed precision |
Date: |
Fri, 26 Mar 2021 00:18:05 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new fef6a3e we have fixed decimal places, not fixed precision
fef6a3e is described below
commit fef6a3eb8b34c88ba7a9a274844969baee899f15
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Mar 26 00:11:16 2021 +0100
we have fixed decimal places, not fixed precision
---
core/api-common.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/api-common.rst b/core/api-common.rst
index cecaf95..19f6bf5 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -381,8 +381,9 @@ Amounts
type Amount = string;
-Amounts of currency are serialized as a string of the format
``<Currency>:<DecimalAmount>``.
-Taler treats monetary amounts as fixed-precision numbers. Unlike floating
point numbers,
+Amounts of currency are serialized as a string of the format
+``<Currency>:<DecimalAmount>``. Taler treats monetary amounts as
+fixed-precision numbers, with 8 decimal places. Unlike floating point numbers,
this allows accurate representation of monetary amounts.
The following constrains apply for a valid amount:
@@ -396,7 +397,6 @@ The following constrains apply for a valid amount:
"EUR:1.50" and "EUR:10" are valid amounts. These are all invalid amounts:
"A:B:1.5", "EUR:4503599627370501.0", "EUR:1.", "EUR:.1".
-
An amount that is prefixed with a ``+`` or ``-`` character is also used in
certain contexts.
When no sign is present, the amount is assumed to be positive.
--
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: we have fixed decimal places, not fixed precision,
gnunet <=