- From: Rouslan Solomakhin <notifications@github.com>
- Date: Sun, 22 May 2016 08:43:36 -0700
- To: w3c/browser-payment-api <browser-payment-api@noreply.github.com>
- Cc:
Received on Sunday, 22 May 2016 15:44:08 UTC
Thank you for the suggestion. #### Cents vs Dollars We are not using cents because we want to be compatible with such standards as [ISO 20022](https://www.iso20022.org/standardsrepository/public/wqt/Description/mx/dico/datatypes/_YX4O9tp-Ed-ak6NoX_4Aeg_-836081793), which allows up to 5 fractional digits. We can express $50.001 as `"value": "50.001"`, but your proposal would result in `"value": "5000.1"`. I think the latter would be confusing to developers. #### Commas vs Dollars We want the developer to write code once and have it work in all localities. So, the website developer would write `"value": "55.00"` always with periods, but the user agent (e.g. browser) will format this into user locale. For example, US locale will show "55.00", but DE locale will show "55,00". --- 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/204#issuecomment-220839111
Received on Sunday, 22 May 2016 15:44:08 UTC