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

Re: [webpayments] Expression of monetary amounts (#40)

From: dezell <notifications@github.com>
Date: Wed, 16 Dec 2015 08:50:01 -0800
To: w3c/webpayments <webpayments@noreply.github.com>
Message-ID: <w3c/webpayments/issues/40/165171973@github.com>
I'm 100% in agreement with dlongley's comment above - use a string that represents an arbitrary precision...

If we want to constrain the string in our spec, we could consider using a RegEx (in the spec) to be unequivocal.
See: http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#decimal
i.e. (\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+)

Or something simpler :-).

Discussion of binary formats (long, double, etc.) is a very slippery slope.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webpayments/issues/40#issuecomment-165171973
Received on Wednesday, 16 December 2015 16:50:41 UTC

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