PhysicalValues/en

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen

Expecco supports values with units to represent physical values such as length, acceleration, area, volume, mass, temperature etc.

Physical values are useful for a nicer presentation of values (eg. in a report) and to convert between unit systems (eg. metric vs. imperial vs. US).

Physical values are implemented by the underlying Smalltalk system and can be used in JavaScript and Smalltalk elementary blocks. Similar public domain packages are available for Node and Python actions - these have to be installed with "rpm"or "pip".

Units[Bearbeiten]

Mass[Bearbeiten]

The following operations return an instance of a mass (i.e. a value with a unit of "Mass"):

<number> kiloGram <number> gram <number> milliGram <number> microGram

Length[Bearbeiten]

Area[Bearbeiten]

Volume[Bearbeiten]

Temperature[Bearbeiten]

Frequency[Bearbeiten]

Energy[Bearbeiten]

Power[Bearbeiten]

Density[Bearbeiten]

Examples[Bearbeiten]

1 kiloGram + 10 gram
10 gram
10 gram asMilliGrams



Copyright © 2014-2024 eXept Software AG