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; ... } ;
<xsd:simpleType name="TypeName"> <restriction base="xsd:float"/> </xsd:simpleType>