data.numeric
data.numeric defines the range of attribute values used for numeric values. | |
Module | tei — 1 The TEI Infrastructure |
Used by | Class:
|
Declaration |
data.numeric = xsd:double | token { pattern = "(\-?[\d]+/\-?[\d]+)" } | xsd:decimal |
Note |
Any numeric value, represented as a decimal number, in floating point format, or as a ratio.
To represent a floating point number, expressed in scientific notation, ‘E
notation’, a variant of ‘exponential notation’, may be used. In
this format, the value is expressed as two numbers separated by the letter E. The first
number, the significand (sometimes called the mantissa) is given in decimal format, while the
second is an integer. The value is obtained by multiplying the mantissa by 10 the number of
times indicated by the integer. Thus the value represented in decimal notation as 1000.0 might
be represented in scientific notation as 10E3.
A value expressed as a ratio is represented by two integer values separated by a solidus (/)
character. Thus, the value represented in decimal notation as 0.5 might be represented as a
ratio by the string 1/2.
|