The "approx" Function
#
SyntaxArgument | Type | Description |
---|---|---|
value | real | The numerical value to check |
min | real | The minimum closeness, or alternatively, minimum value to accept |
[max] | real | Optional: The maximum value to accept (use none for +/- min ) |
#
DescriptionChecks if a value is between two numbers and returns true
or false
.
By default, the input value will be tested plus or minus the min
value, but an explicit max
value can also be supplied to set the exact range.