Skip to content

BaseUnit

mtbeek32 edited this page Jan 2, 2023 · 8 revisions

Unit functions BaseUnit

concept

  1. BaseUnit is a type of values unit, for which the metric and value type are explicitly configured
  2. BaseUnit() is a function to configure a values unit as base unit

The next topics on this page describe the BaseUnit() function.

syntax

  • BaseUnit(metric, valuetype)

definition

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.

applies to

example

container units {    unit m  := BaseUnit('meter', float32);    unit m2 := m * m; }

Clone this wiki locally