CX_NUMERIC::DiscreteRange
Description:
This function checks whether the number is a part of the set of numbers obtained by iterating the range (start, end) with step value. The result is returned in the form of a truth value.
Code example:
2.0 20.0 2.0 8.0 Call(DiscreteRange) // Bereich 2 bis 20, Schrittwert 2, Ergebnis: 1 - ja
..........................................
2cm 20m 2cm 9.11m Call(DiscreteRange) // Bereich 0,02m bis 20m, Schrittwert 0,02, Ergebnis: 0 - nein
Stack | Position | Object type | Brief description |
---|---|---|---|
Stack(IN) | Top | CX_NUMERIC or CX_VALUE | Number |
Top 1 | CX_NUMERIC or CX_VALUE | Start area | |
top 2 | CX_NUMERIC or CX_VALUE | End area | |
top 3 | CX_NUMERIC or CX_VALUE | Step value | |
Stack(OUT) | Top | INT | the result of the test |