W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

Restricting decimals

From: <Mike_Leditschke@nemmco.com.au>
Date: Wed, 28 Nov 2001 10:26:45 +1000
To: xmlschema-dev@w3.org
Message-ID: <OFFFEBB804.50FE093B-ON4A256B12.00023068@nemmco.com.au>
I need to constrain a decimal value to have at most
two digits on either side of the decimal point,

e.g. 22.22

If I use totalDigits=4, fractionalDigits=2, this still
allows

1234. , 123.4 etc

Do I need to resort to a pattern or have I missed the
obvious?

Thanks
Michael


------------------------------------------
This e-mail is confidential.  If you are not the intended recipient, any use, disclosure or copying of this document is unauthorised and prohibited.  If you have received this document in error, please delete the email and notify me by return email or by phoning the NEMMCO Helpdesk on 1300 300 295.
Received on Tuesday, 27 November 2001 19:27:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT