<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
Moduliso-fs — 18 Feature Structures
Attribute
valuesupplies a lower bound for the numeric value represented, and also (if max is not supplied) its upper bound.
Zustand Obligatorisch
Datentyp
data.numeric
Werte A real number or integer.
maxsupplies an upper bound for the numeric value represented.
Zustand Optional
Datentyp
data.numeric
Werte A real number or integer.
truncspecifies whether the value represented should be truncated to give an integer value.
Zustand Optional
Datentyp
data.truthValue
Verwendet von model.featureVal.single
Kann enthaltenEmpty element
Deklaration
element numeric
{
   att.global.attributes,
   attribute value { data.numeric },
   attribute max { data.numeric }?,
   attribute trunc { data.truthValue }?,
   empty
}
Beispiel
<numeric value="42"/>

This represents the numeric value 42.

Beispiel
<numeric value="42.45max="50trunc="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

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