W3C home > Mailing lists > Public > www-forms@w3.org > April 2000

Parsing Monetary values

From: IWAY - Felix Faassen <felix@iway.nl>
Date: Tue, 11 Apr 2000 16:29:37 +0200
Message-ID: <014601bfa3c2$5e3b7100$2c0110ac@iway.nl>
To: <www-forms@w3.org>
I've got a remark/question concerning the monetary values described in paragraph 4.4 of the
Xforms data model draft.

The four facets min, max, decimals and currency are clear to me. 
However I see that the value used in the example is notated in US numeric form which uses the dot as
decimal seperator. However in European and other countries the comma sign is used as decimal seperator.
(and of course the dot in European countries  is used to indacte number of thousands and US the comma is used)

Imagine a form submission appears as:


When you're parsing this monetary value you cannot "see" if we are dealing with a value 
which says twenty-six thousand three hundred and fifteen or if we mean 26 with as decimals 315.

Is there a way you could figure this out? or do we have to add something to the
monetary data type ?

Best Regards,

Felix Faassen

Felix Faassen (felix@iway.nl)
Iway Technologies BV
Delftechpark 26
2628 XH Delft
The Netherlands
Tel: +31 (0) 15 2600941  
Fax: +31 (0) 15 2600942
URL: http://www.iway.nl
XML + Forms = InternetForms 
Powerful legally binding transactions on the Internet. 
Received on Tuesday, 11 April 2000 10:34:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:03 UTC