TOC PREV NEXT INDEX


Real Number Types


XSD defines the following types that are mapped to the C double type:
float
double
decimal
A double is always used because it provides the maximum precision to hold numbers for all of the types above.
The general mapping is as follows:
XSD type:
<xsd:simpleType name="TypeName">
 
   <restriction base="xsd:float"/>
 
</xsd:simpleType>
 
 
Generated C code:
typedef OSREAL TypeName;
 
Generated C++ code:
class TypeName : public OSBaseType {
OSREAL value;
...
} ;



Copyright © Objective Systems 2002-2005
This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included.
  Objective Systems, Inc.
102 Pickering Way, Suite #506
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com
TOC PREV NEXT INDEX