data.numeric

data.numeric defines the range of attribute values used for numeric values.
Moduletei — 1 The TEI Infrastructure
Used by
Element:
Declaration

<rng:define name="data.numeric">
<rng:choice>
 <rng:data type="double"/>
 <rng:data type="decimal"/>
</rng:choice>
</rng:define>
data.numeric = xsd:double | xsd:decimal
Note
Any numeric value that can be represented as a decimal number.
In addition, the range of values that can be represented in an IEEE double precision (i.e., 64-bit) floating point number may be represented using scientific notation. Roughly that range is ±10⁻³²³ to ±10³⁰⁸.
To represent a number expressed in scientific notation, ‘E notation’, a variant of ‘exponential notation’, is used in the attribute value. A number is represented in exponential notation as a value between 1 and 10 (or -1 and -10) which is multiplied by ten raised to some integral power. When reading E notation, the letter E is read as ‘times 10 to the power’.
That is, the significand (sometimes called the mantissa) is written as a decimal number, followed by the letter E, followed by an integer exponent. The multiplication sign and the base itself (10) are implied. Either the significand or the exponent (or both) may be a negative number, in which case it should be preceded by a minus sign. There should be no whitespace separating the significand from the E from the exponent. E.g., 3×10⁸ can be expressed as 3E8.
Other examples of scientific notation include:
  • 3E10 (the speed of light in centimetres per second)
  • 9.12E-31 (the mass of an electron in Kg)
  • 4E11 (estimated number of stars in our galaxy)
  • -1.76E11 (electron charge to mass quotient in coulombs per Kg)
Either e or E may be used to separate the significand from the exponent, however these Guidelines recommend E be used both for consistency with other standards bodies and to avoid confusion with the mathematical constant e.