Re: [w3c/payment-request] Are integer values for PaymentCurrencyAmount.value left as integers? (#624)

> On Sep 18, 2017, at 11:09 AM, Rouslan Solomakhin <notifications@github.com> wrote:
> 
> We append decimals based on the currency. Japanese Yen does not have decimals, for example. However, if the merchant specifies fractions of a cent, we preserve it.

If I were to type “10” in USD, would the merchant receive “10” or “10.00”?

Ian


> We're using ICU library for this. Our code:
> 
> https://cs.chromium.org/chromium/src/components/payments/core/currency_formatter.h
> 
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
> 

--
Ian Jacobs <ij@w3.org>
https://www.w3.org/People/Jacobs/
Tel: +1 718 260 9447






-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/issues/624#issuecomment-330273141

Received on Monday, 18 September 2017 16:12:12 UTC