Re: [w3c/browser-payment-api] Why is details.total.amount.value not a number? (#301)

Representing amounts in payments as floating point numbers is generally accepted as a bad idea. Amounts should be represented as decimals.

I believe the most widely used definition of a decimal type is the XML Schema Decimal Type which is used outside of XML as a way to define decimals [1].

[1] https://www.w3.org/TR/xmlschema-2/#decimal

-- 
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/browser-payment-api/issues/301#issuecomment-262902704

Received on Friday, 25 November 2016 08:19:14 UTC