<num>

<num> (number) contains a number, written in any form. [3.6.3. Numbers and Measures]
Module core
Attributes Attributes att.global (xml:id, n, xml:lang) (lim.att.global.fragmentable (part)) (att.global.rendition (rendition)) (att.global.source (source)) att.ranging (atLeast, atMost, min, max, confidence)
type indicates the type of numeric value.
Derived from att.typed
Status Optional
Datatype teidata.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.
value supplies the value of the number in standard form.
Status Optional
Datatype teidata.numeric
Values a numeric value.
Note
The standard form used is defined by the TEI datatype teidata.numeric.
Member of
Contained by
May contain
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.
Examples

<p>I reached <num type="cardinal" value="21">twenty-one</num> on
my 
<num type="ordinal" value="21">twenty-first</num> birthday</p>
<p>Light travels at <num value="3E10">3×10<hi rend="sup">10</hi>
   
</num> cm per second.</p>
Source Github

<elementSpec module="core" ident="num">
   
<gloss>number</gloss>
   
<desc>contains a number, written in any form.</desc>
   
<classes>
      
<memberOf key="att.global"/>
      
<memberOf key="att.typed"/>
      
<memberOf key="model.measureLike"/>
      
<memberOf key="att.ranging"/>
   
</classes>
   
<content>
      
<macroRef key="macro.phraseSeq"/>
   
</content>
   
<attList>
      
<attDef ident="type" mode="change" usage="opt">
         
<desc>indicates the type of numeric value.</desc>
         
<datatype>
            
<dataRef key="teidata.enumerated"/>
         
</datatype>
         
<valList type="semi" mode="add">
            
<valItem ident="cardinal">
               
<desc>absolute number, e.g. 21, 21.5</desc>
            
</valItem>
            
<valItem ident="ordinal">
               
<desc>ordinal number, e.g. 21st</desc>
            
</valItem>
            
<valItem ident="fraction">
               
<desc>fraction, e.g. one half or three-quarters</desc>
            
</valItem>
            
<valItem ident="percentage">
               
<desc>a percentage</desc>
            
</valItem>
         
</valList>
      
</attDef>
      
<attDef ident="value" usage="opt">
         
<desc>supplies the value of the number in standard form.</desc>
         
<datatype>
            
<dataRef key="teidata.numeric"/>
         
</datatype>
         
<valDesc>a numeric value.</valDesc>
      
</attDef>
   
</attList>
</elementSpec>