W3C home > Mailing lists > Public > public-payments-wg@w3.org > December 2015

[paymentrequest] CurrencyAmount description has exponent sign wrong (#39)

From: Adam Forsyth <notifications@github.com>
Date: Wed, 16 Dec 2015 10:14:28 -0800
To: WICG/paymentrequest <paymentrequest@noreply.github.com>
Message-ID: <WICG/paymentrequest/issues/39@github.com>
Compare [the description](https://github.com/WICG/paymentrequest/blob/gh-pages/specs/paymentrequest.html#L525-L527):

> A CurrencyAmount dictionary is used to supply monetary amounts with known precision using base-10. The value of the amount is mantissa * 10 ^ exponent. The following fields must be supplied for a CurrencyAmount to be valid:

to [the example given](https://github.com/WICG/paymentrequest/blob/gh-pages/specs/paymentrequest.html#L525-L527):

> The following example shows how to represent US$55.00.

```
EXAMPLE 6
{
  "currencyCode": "USD",
  "mantissa": 5500,
  "exponent": 2
}
```

If the value was mantissa * 10 ^ exponent, the value would be 550000 not 55.00.

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/paymentrequest/issues/39
Received on Wednesday, 16 December 2015 18:14:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:43:12 UTC