[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Fun with regular expressions


regular expression for float value
> > maxInclusive of INF
> > minInclusive of -INF

I thought I would add a little more to this thread-- I was reading the
erratta (all 137 pages) and came across a change in the construction of
double and float:

From E2-40
 Any value ·incomparable· with the value used for the four bounding facets
(·minInclusive·, ·maxInclusive·, ·minExclusive·, and ·maxExclusive·) will be
excluded from the resulting restricted ·value space·. In particular, when
"NaN" is used as a facet value for a bounding facet, since no other float
values are ·comparable· with it, the result is a ·value space· either having
NaN as its only member (the inclusive cases) or that is empty (the exclusive
cases). If any other value is used for a bounding facet, NaN will be
excluded from the resulting restricted ·value space·; to add NaN back in
requires union with the NaN-only space.

This is just further proof that you should use the inclusive cases of INF
and -INF. This will help your cmopatibility now-- and the will be usable in
the future. Of course, whether or not this makes more sense than using a
pattern is still debateable.

Cheers,
Jeff Rafter


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.