Limit

Limit

%Limit function


Function

The function returns the value defined by the parameter Value, if the value is within the interval defined by the parameters Min and Max.

Declaration

REAL %Limit( REAL in Value, REAL in Min, REAL in Max )

Parameters

Value

Value.

Min

Minimum value.

Max

Maximum value.

Description

The function returns a value as follows:

  • if ValueMax - function returns the value defined by Max,

  • if ValueMin - function returns the value defined by Min,

  • if Min < Value < Max - function returns the value defined by Value.