diff options
-rw-r--r-- | core/api-exchange.rst | 6 | ||||
-rw-r--r-- | design-documents/051-fractional-digits.rst | 24 | ||||
-rw-r--r-- | manpages/taler.conf.5.rst | 14 |
3 files changed, 15 insertions, 29 deletions
diff --git a/core/api-exchange.rst b/core/api-exchange.rst index f95fe20e..a2826761 100644 --- a/core/api-exchange.rst +++ b/core/api-exchange.rst @@ -156,12 +156,6 @@ possibly by using HTTPS. // How wallets should render this currency. currency_specification: CurrencySpecification; - // How many digits should the amounts be rendered - // with by default. Small capitals should - // be used to render fractions beyond the number - // given here (like on gas stations). - currency_fraction_digits: Integer; - // Absolute cost offset for the STEFAN curve used // to (over) approximate fees payable by amount. stefan_abs: Amount; diff --git a/design-documents/051-fractional-digits.rst b/design-documents/051-fractional-digits.rst index cd2e1eb3..6c23a257 100644 --- a/design-documents/051-fractional-digits.rst +++ b/design-documents/051-fractional-digits.rst @@ -133,9 +133,9 @@ section. The map could be given directly in JSON. For example: name = "Euro" code = "EUR" decimal_separator = "," - num_fractional_input_digits = 2 - num_fractional_normal_digits = 2 - num_fractional_trailing_zero_digits = 2 + fractional_input_digits = 2 + fractional_normal_digits = 2 + fractional_trailing_zero_digits = 2 is_currency_name_leading = NO alt_unit_names = {"0":"€"} @@ -144,9 +144,9 @@ section. The map could be given directly in JSON. For example: name = "Japanese Yen" code = "JPY" decimal_separator = "." - num_fractional_input_digits = 2 - num_fractional_normal_digits = 0 - num_fractional_trailing_zero_digits = 2 + fractional_input_digits = 2 + fractional_normal_digits = 0 + fractional_trailing_zero_digits = 2 is_currency_name_leading = YES alt_unit_names = {"0":"¥"} @@ -155,9 +155,9 @@ section. The map could be given directly in JSON. For example: name = "Bitcoin (Mainnet)" code = "BITCOINBTC" decimal_separator = "." - num_fractional_input_digits = 8 - num_fractional_normal_digits = 3 - num_fractional_trailing_zero_digits = 0 + fractional_input_digits = 8 + fractional_normal_digits = 3 + fractional_trailing_zero_digits = 0 is_currency_name_leading = NO alt_unit_names = {"0":"BTC","-3":"mBTC"} @@ -166,9 +166,9 @@ section. The map could be given directly in JSON. For example: name = "WAI-ETHER (Ethereum)" code = "EthereumWAI" decimal_separator = "." - num_fractional_input_digits = 0 - num_fractional_normal_digits = 0 - num_fractional_trailing_zero_digits = 0 + fractional_input_digits = 0 + fractional_normal_digits = 0 + fractional_trailing_zero_digits = 0 is_currency_name_leading = NO alt_unit_names = {"0":"WAI","3":"KWAI","6":"MWAI","9":"GWAI","12":"Szabo","15":"Finney","18":"Ether","21":"KEther","24":"MEther"} diff --git a/manpages/taler.conf.5.rst b/manpages/taler.conf.5.rst index 2959ef74..3c2a35c2 100644 --- a/manpages/taler.conf.5.rst +++ b/manpages/taler.conf.5.rst @@ -102,17 +102,17 @@ DECIMAL_SEPARATOR What symbol should be used to separate fractional digits. Typical values are "." or ",". -NUM_FRACTIONAL_INPUT_DIGITS +FRACTIONAL_INPUT_DIGITS Number of fractional digits that users are allowed to enter manually in the user interface. -NUM_FRACTIONAL_NORMAL_DIGITS +FRACTIONAL_NORMAL_DIGITS Number of fractional digits that will be rendered normally (in terms of size and placement). Digits shown beyond this number will typically be rendered smaller and raised (if possible). -NUM_FRACTIONAL_TRAILING_ZERO_DIGITS +FRACTIONAL_TRAILING_ZERO_DIGITS Number of fractional digits to pad rendered amounts with even if these digits are all zero. For example, use 2 to render 1 USD as $1.00. @@ -176,14 +176,6 @@ ENABLE_REWARDS rewards is enabled or disabled, and protocol-compliant merchant backends will then enable or disable the feature accordingly. -CURRENCY_FRACTION_DIGITS - How many digits should amounts be rendered - with by default. Small capitals should - be used to render fractions beyond the number - given here (like on gas stations). Defaults to 0. - For EUR and USD, the value would be 2, while for - JPY it would be 0. - STEFAN_ABS Absolte amount to use in the STEFAN fee approximation curve (see DD47). Defaults to 0 if not specified. |