Herunterladen Inhalt Inhalt Diese Seite drucken

Busch-Jaeger 6136/APP Handbuch Seite 62

Vorschau ausblenden Andere Handbücher für 6136/APP:
Inhaltsverzeichnis

Werbung

Inbetriebnahme
Functions
There are several functions available in scripts to calculate values. These functions can be used
in combination with commands or with variables.
Mathematical
ROUND (value) or ROUND (value, precision)
Returns the rounded value of the given value. When no precision is specified, a precision of 0 is
used. For example ROUND(4.3) = 4 and ROUND(4.321, 1) = 4.3
FLOOR (value) or FLOOR (value, precision)
Returns the floored (rounded down) value of the given value. When no precision is specified, a
precision of 0 is used. For example FLOOR(4.7) = 4 and FLOOR(4.987, 1) = 4.9
CEIL (value) or CEIL (value, precision)
Return the ceiled (rounded up) value of the given value. When no precision is specified, a
precision of 0 is used. For example CEIL(4.3) = 5 and CEIL(4.321, 1) = 4.4
ABS (value)
Returns the absolute value of the given value, so ABS(--‐4) = 4 and ABS(6.13) = 6.13.
MIN (value, value, value, ..)
Returns the minimum value of all the parameters given. Requires a minimum of one parameter.
MAX (value, value, value, ..)
Returns the maximum value of all the parameters given. Requires a minimum of one parameter.
AVG (value, value, value, ..)
Returns the average value of all the parameters given. Requires a minimum of one parameter.
RANDOM (max value)
Returns a random value between 0 and the given maximum value.
KNX Technisches Handbuch 1373-1-8902 / 2CKA001373B8902
│62

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis