Clarifications

Co-authored-by: Kris Nuttycombe <kris.nuttycombe@gmail.com>
This commit is contained in:
Daira Hopwood 2020-09-24 16:44:10 +01:00 committed by GitHub
parent e2ffce08e3
commit 57cd724f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -131,12 +131,14 @@ at most `<m>` instances of production ``x``.
Transfer amount
---------------
If an amount is provided, it MUST be specified in decimal ZEC. Amounts MUST NOT
contain commas, and if a decimal fraction is present then a period (`.`) MUST be
used as the separating character to separate the whole number from the decimal
fraction. Both the whole number and the decimal fraction MUST be nonempty.
Leading zeros in the whole number or trailing zeros in the decimal fraction
are ignored. There MUST NOT be more than 8 digits in the decimal fraction.
If an amount is provided, it MUST be specified in decimal ZEC. If a decimal fraction
is present then a period (`.`) MUST be used as the separating character to separate
the whole number from the decimal fraction, and both the whole number and the
decimal fraction MUST be nonempty. No other separators (such as commas for
grouping or thousands) are permitted. Leading zeros in the whole number or trailing
zeros in the decimal fraction are ignored. There MUST NOT be more than 8 digits in
the decimal fraction.
For example,
* ``amount=50.00`` or ``amount=50`` or ``amount=050`` is treated as 50 ZEC;
* ``amount=0.5`` or ``amount=00.500`` is treated as 0.5 ZEC; and