The decimal data type represents a finite-length sequence of digits separated by a period. : decimal « XML Schema « XML Tutorial






<!-- schema -->
<xsd:element name="money">
  <xsd:simpleType>
   <xsd:restriction base="xsd:decimal">
    <xsd:totalDigits value="4"/>
    <xsd:fractionDigits value="2"/>
   </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
<!-- instance document -->
<money>14.98</money>








3.9.decimal
3.9.1.The decimal data type represents a finite-length sequence of digits separated by a period.
3.9.2.Use decimal