data.numeric
data.numeric defines the range of attribute values used for numeric values. | |
Module | tei — 1 The TEI Infrastructure |
Declaration | 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,
‘exponential notation’ is used in the attribute
value. 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:
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. |