Number (Named Data Type)

From wiki.fine.cz
Revision as of 20:02, 21 March 2022 by Petr.Bures (talk | contribs)
Jump to navigation Jump to search

Used to store a numeric value (with a decimal point or an integer). It can also contain a text string.

Common Properties

Number properties
Property Template XML Description
    Symbol     [A] STRING Symbol Formatted text to be used for input and output in the format Symbol = Value [Unit]
    Unit type     [A] ENUM UnitType Unit type (e. g. Length)
    Unit description

(Unit type Undefined)

    [A] STRING UnitNameMetric

    [A] STRING UnitNameImperial

Unit description (separately Metric and Imperial) - used according to the current Unit System when entering and outputting in the format Symbol = Value [Unit]
    Unit definition

(other unit types)

    [A] STRING UnitDefMetric

    [A] STRING UnitDefImperial

Definition of the unit with respect to its Unit type (separately Metric and Imperial) (e.g. for the Length type it can be m, cm, mm, ft, ...) - see Units
    Počet desetinných míst     [A] INT DecimalDigitsMetric

    [A] INT DecimalDigitsImperial

The number of decimal places, if Exponent, then the number of valid digits is the number of decimal places increased by one (separately Metric and Imperial).
    Exponent     [A] BOOL ExponentMetric

    [A] BOOL ExponentImperial

The exponential format number eg 1.234E + 06 is used (separately Metric and Imperial).
    Allow string input     [A] BOOL AllowString Alternative text can be entered instead of number, e. g. (not entered)
    Empty text     [A] STRING EmptyText Text to use if the user does not enter his own
  • When data entering and output the format Symbol = Value [Unit] is used according to the current unit system
  • If the unit type is other than Undefined, values are recalculated when changing the unit system

Example of the Template XML

<Settings UnitType="Undefined" UnitNameMetric="sss" UnitNameImperial="ss2" DecimalDigitsMetric="3" ExponentMetric="false" DecimalDigitsImperial="3" ExponentImperial="false" />

<Settings UnitType="1/ΔTemp" UnitDefMetric="DegCelsius" UnitDefImperial="DegCelsius" DecimalDigitsMetric="3" ExponentMetric="false" DecimalDigitsImperial="3" ExponentImperial="false" />

<Settings UnitType="Force*Length/Angle/Length" UnitDefMetric="kN|m|rad|m" UnitDefImperial="kip|in|rad|in" DecimalDigitsMetric="3" ExponentMetric="false" DecimalDigitsImperial="3" ExponentImperial="false" />

Example of the Data XML

<Item ID="{DC2B5705-A262-40B8-B91D-0BF3B7D8B80C}" DblValue="1,000" Unit="Undefined_sss" />

<Item ID="{6776BF97-1490-4A2B-A1E7-46B4A40ACD8D}" DblValue="1,000" Unit="1/ΔTemp_DegCelsius" />

<Item ID="{E99E7D72-DA4D-47CE-AAE2-823F6B2D5C81}" DblValue="1,000" Unit="Force_kN*Length_m/Angle_rad/Length_m" />

ID can be either a GUID or a unique text identifier.