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

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