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

Hi @marcoscaceres, @rsolomakhin, @adrianba,

I was asked today whether integer values (PaymentCurrencyAmount.value) are preserved as integers, or whether ".00" is appended by implementations. 

I don't see anything in the algorithm [1] about this type of conversion. I think the desired behavior is "if you get an integer, leave it as an integer."

Is that how implementations behave today? 
Should the spec say anything different?

Thanks!
Ian

[1] https://w3c.github.io/payment-request/#validity-checkers

-- 
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

Received on Monday, 18 September 2017 15:32:49 UTC