W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Canonical Representation for decimal

From: Guy Gurden <gurden_guy@jpmorgan.com>
Date: Wed, 29 Nov 2000 12:16:10 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <852569A6.005EDC02.00@nyc-ntgw-n01.ny.jpmorgan.com>
I would like to get clarification on whether the canonical representation for
the decimal dataype (http://www.w3.org/TR/2000/CR-xmlschema-2-20001024/#decimal)
allows the single zero to the left of the decimal place in decimal numbers such
as 0.12345 or is the zero regarded as a 'leading zero' and therefore prohibited.

I would assume that the same convention will hold for the mantissa part of a
float value since the mantissa representation follows the lexical rules for
decimal.  Currently the canonical definition for float is a little cryptic on
the matter.  It states 'The exponent must be indicated by "E" and number
representations must be normalized such that for non-zero numbers there is a
single non-zero digit to the left of the decimal point.'

We use a subset of the Schema built-in datatypes in FpML and are currently
deciding whether we should additionally constrain our lexical representations to
follow the Schema canonical representations.

Thanks

Guy Gurden
J.P. Morgan (FpML.org)



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.
Received on Wednesday, 29 November 2000 12:16:26 GMT

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