Scalar FunctionsMath Functions
around
Whether a value lies within a distance of a center, inclusive: `abs(value - center) <= delta`.
Takes numbers with a numeric delta, or datetimes or timespans with a timespan delta; any other mix is an error. A negative delta is false.
Syntax
around(value, center, delta)Parameters
Prop
Type
Returns: bool
Examples
Example 1
print around(datetime(2024-06-08 10:20), datetime(2024-06-08 10:00), 30m) // the raiders landed within half an hour of dawn| print_0 (bool) |
|---|
| true |