PhysicalValues/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 25.x)
Zur Navigation springen Zur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
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…“
 
Keine Bearbeitungszusammenfassung
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

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

Area

Volume

Temperature

Frequency

Energy

Power

Density

Examples

1 kiloGram + 10 gram
10 gram
10 gram asMilliGrams



Copyright © 2014-2024 eXept Software AG