Please enable JavaScript to view this site.

Function that returns the incoming value appropriately limited within the specified range.

Syntax

real in_range (real value, real min, real max)

value

Real unit to be examined (can be a generic real expression)

min

Lower limit value (can be a generic real expression)

max

Upper limit value (can be a generic real expression)

Result

Returns:

Condition

Value

value > max

max

value < min

min

Otherwise

value

Validity

Rule, Task

Note

With the RC3E compiler, it is good to specify the cast of the input data type in order to avoid warnings during compilation.

(e.g. in_range((real)rrParPuntiCammaLMot, (real)2.0, (real)max_punti_camma_lmot))

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC