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

Schema Question: decimal including INF??

  • From: Imran Rashid <imranr@w...>
  • To: xml-dev@l...
  • Date: Tue, 19 Dec 2000 14:58:27 -0600

schemi infinity
I'm a complete newbie w/ Schema's, so this might be a dumb question.

I have a datatype that can be a decimal of arbitray precision, or it can be
+/- infinity.
    since its arbitrary precision, my first instinct was to go to the
decimal datatype.  However, it seems to me that INF is only defined for
double and float, not decimal.
    I know I could define my own datatype, that is either a decimal or the
string "INF".  However, I was thinking that with the float and double types,
presumably another application would see "INF" and interpret it as infinity.
If "INF" is matched on a string, though, the application would simply see
the literal string "INF".

    if the arbitrary precision is not extraordinarily important, am I better
off just using the double type?

thanks,
Imran Rashid


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.