Skip to content

Bars Specification 0.1.0 — Transform: at_least

Category: math · Since: 0.1.0

Returns the larger of the input and a minimum.

Returns the larger of the numeric input and minimum. Also accepts a date-time input paired with a date-time minimum, returning whichever instant is later; a numeric minimum against a date-time input is a type-mismatch soft failure.

Input coercion: number

Arguments

Name Type Optional Default
minimum number no

Arity: 1–1

Worked examples

{{ n | at_least: 5 }}

5
{{ n | at_least: 5 }}

8

Full fixture: transforms/transform-at_least.json