-
Notifications
You must be signed in to change notification settings - Fork 1
BaseUnit
mtbeek32 edited this page Jan 2, 2023
·
8 revisions
Unit functions BaseUnit
- BaseUnit is a type of values unit, for which the metric and value type are explicitly configured
- BaseUnit() is a function to configure a values unit as base unit
The next topics on this page describe the BaseUnit() function.
- BaseUnit(metric, valuetype)
BaseUnit(metric, valuetype) configures values units as base units, e.g. meter or second.
The metric of the new unit is configured as first argument.
The value type of the new unit is configured as second argument.
- literal metric as string value
- valuetype with any value type, although usually only value types of the NumericGroup are used in base units.
container units
{
unit
m :=
BaseUnit
('meter', float32);
unit
m2 := m * m;
}
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.