|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home MathPack Math1 Comparison & Limiting WithinBounds|
|See also: Min, Max, WithinRect, ConfineValue|
The function WithinBounds compares the value Inval to the interval which is spanned by the boundaries Boundary1 and Boundary2. It returns a TRUE value if the value Inval lies within the interval. The two boundary values may be exchanged without affecting the result.
Version  provides the additional parameter Margin which extends the range of the interval by +/-Margin before comparing Inval to the interval.