<numeric>

<numeric> (numeric value) represents the value part of a feature-value specification which contains a numeric value or range. 18.3 Other Atomic Feature Values
Module iso-fs — 18 Feature Structures
In addition to global attributes In addition to global attributes
value supplies a lower bound for the numeric value represented, and also (if max is not supplied) its upper bound.
Status Required
Datatype

<rng:ref name="data.numeric"/>
data.numeric
Values A real number or integer.
max supplies an upper bound for the numeric value represented.
Status Optional
Datatype

<rng:ref name="data.numeric"/>
data.numeric
Values A real number or integer.
trunc specifies whether the value represented should be truncated to give an integer value.
Status Optional
Datatype

<rng:ref name="data.truthValue"/>
data.truthValue
Used by
May contain Empty element
Declaration

<rng:element name="numeric">
 <rng:ref name="att.global.attributes"/>
 <rng:attribute name="value">
  <rng:ref name="data.numeric"/>
 </rng:attribute>
 <rng:optional>
  <rng:attribute name="max">
   <rng:ref name="data.numeric"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="trunc">
   <rng:ref name="data.truthValue"/>
  </rng:attribute>
 </rng:optional>
 <rng:empty/>
</rng:element>
element numeric
{
   att.global.attributes,
   attribute value { data.numeric },
   attribute max { data.numeric }?,
   attribute trunc { data.truthValue }?,
   empty
}
Example
<numeric value="42"/>

This represents the numeric value 42.

Example
<numeric value="42.45" max="50" trunc="true"/>

This represents any of the nine possible integer values between 42 and 50 inclusive. If the trunc attribute had the value FALSE, this example would represent any of the infinite number of numeric values between 42.45 and 50.0

Note
It is an error to supply the max attribute in the absence of a value for the value attribute.