Don't allow fractional zatoshi (continued).

This commit is contained in:
Daira Hopwood 2020-09-24 14:07:39 +01:00 committed by GitHub
parent b44c11e8c7
commit 3dc98a86ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ 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. For example,
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
* ``amount=50,000.00`` or ``amount=50,00`` or ``amount=50.`` or ``amount=.5``