PhysicalValues/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „Expecco supports values with units to represent physical values such as length, acceleration, area, volume, mass, temperature etc. Physical values are useful…“)
 
Zeile 4: Zeile 4:


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".
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 ==


=== Mass ===
=== Mass ===


The following operations return an instance of a mass (i.e. a value with a unit of "Mass"):
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 ===
=== Length ===
Zeile 16: Zeile 23:


=== Temperature ===
=== Temperature ===

=== Frequency ===


=== Energy ===
=== Energy ===
Zeile 22: Zeile 31:


=== Density ===
=== Density ===

== Examples ==

1 kiloGram + 10 gram

10 gram

10 gram asMilliGrams

Version vom 25. Oktober 2019, 06:51 Uhr

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