-
Notifications
You must be signed in to change notification settings - Fork 1
BaseUnit
mtbeek32 edited this page Feb 20, 2024
·
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.
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<float32> m := BaseUnit('meter', float32);
unit<float32> m2 := m * m;
}
result: configured base unit m and used in a derived unit m2.
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.