W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2003

Non-zero, non-infinite float

From: Hugh Wallis <hugh_wallis@hyperion.com>
Date: Fri, 28 Mar 2003 08:56:14 -0500
Message-ID: <03f301c2f531$d4d42230$78941bac@hyperion.com>
To: <xmlschema-dev@w3.org>
Is this the best way to define a non-zero, non-infinite float?

 <simpleType name="nonZeroNonInfiniteFloat">
  <union>
   <simpleType>
    <restriction base="float">
     <minExclusive value="0"/>
     <maxExclusive value="INF"/>
    </restriction>
   </simpleType>
   <simpleType>
    <restriction base="float">
     <minExclusive value="-INF"/>
     <maxExclusive value="-0"/>
    </restriction>
   </simpleType>
  </union>
 </simpleType>

Thanks

Hugh

************************************************************************

If you received this e-mail in error please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited.

Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion.

For more information about Hyperion, please visit our Web site at www.hyperion.com
Received on Friday, 28 March 2003 08:56:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT