summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-23 11:59:12 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-23 11:59:12 +0200
commit0774fd7020a4f70beb13ddf668686c44f8ebb84c (patch)
tree6caac9d24c4d566fd06f2ab177549e5b4a585106 /src/include
parent727eccbe644aede46ef5eafc11964992960457e0 (diff)
downloadexchange-0774fd7020a4f70beb13ddf668686c44f8ebb84c.tar.gz
exchange-0774fd7020a4f70beb13ddf668686c44f8ebb84c.tar.bz2
exchange-0774fd7020a4f70beb13ddf668686c44f8ebb84c.zip
fix #6213
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_amount_lib.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/taler_amount_lib.h b/src/include/taler_amount_lib.h
index 4f77c322e..63c5dba40 100644
--- a/src/include/taler_amount_lib.h
+++ b/src/include/taler_amount_lib.h
@@ -51,6 +51,9 @@ extern "C"
*
* Note that we need sub-cent precision here as transaction fees might
* be that low, and as we want to support microdonations.
+ *
+ * An actual `struct Amount a` thus represents
+ * "a.value + (a.fraction / #TALER_AMOUNT_FRAC_BASE)" units of "a.currency".
*/
#define TALER_AMOUNT_FRAC_BASE 100000000
@@ -76,7 +79,7 @@ struct TALER_AmountNBO
uint64_t value GNUNET_PACKED;
/**
- * Additinal fractional value, in NBO.
+ * Fraction (integer multiples of #TALER_AMOUNT_FRAC_BASE), in NBO.
*/
uint32_t fraction GNUNET_PACKED;
@@ -100,7 +103,7 @@ struct TALER_Amount
uint64_t value;
/**
- * Fraction (denominator of fraction)
+ * Fraction (integer multiples of #TALER_AMOUNT_FRAC_BASE).
*/
uint32_t fraction;