<num>

<num> (number) contains a number, written in any form. 3.5.3 Numbers and Measures
Modulecore — 3 Elements Available in All TEI Documents
AttributesIn addition to global attributes
typeindicates the type of numeric value.
Status Optional
Datatype

<rng:ref name="data.enumerated"/>
data.enumerated
Suggested values include:
cardinal
absolute number, e.g. 21, 21.5
ordinal
ordinal number, e.g. 21st
fraction
fraction, e.g. one half or three-quarters
percentage
a percentage
Note
If a different typology is desired, other values can be used for this attribute.
valuesupplies the value of the number in standard form.
Status Optional
Datatype

<rng:ref name="data.numeric"/>
data.numeric
Values a numeric value.
Note
The standard form used is defined by the TEI datatype data.numeric.
Used by model.measureLike
May contain
Declaration

<rng:element name="num">
<rng:ref name="att.global.attributes"/>
<rng:optional>
 <rng:attribute name="type">
  <rng:choice>
   <rng:value>cardinal</rng:value>
   <rng:value>ordinal</rng:value>
   <rng:value>fraction</rng:value>
   <rng:value>percentage</rng:value>
   <rng:data type="Name"/>
  </rng:choice>
 </rng:attribute>
</rng:optional>
<rng:optional>
 <rng:attribute name="value">
  <rng:ref name="data.numeric"/>
 </rng:attribute>
</rng:optional>
<rng:ref name="macro.phraseSeq"/>
</rng:element>
element num
{
   att.global.attributes,
   attribute type
   {
      "cardinal" | "ordinal" | "fraction" | "percentage" | xsd:Name
   }?,
   attribute value { data.numeric }?,
   macro.phraseSeq
}
Example
<p>I reached <num type="cardinalvalue="21">twenty-one</num>
on my <num type="ordinalvalue="21">twenty-first</num> birthday...
light travels at <num value="10E10">10<hi rend="sup">10</hi>
 </num> cm per second.</p>
Note
Detailed analyses of quantities and units of measure in historical documents may also use the feature structure mechanism described in chapter 18 Feature Structures. The num element is intended for use in simple applications.