Bars Specification 0.1.0 — Transform: at_most¶
Category: math · Since: 0.1.0
Returns the smaller of the input and a maximum.
Returns the smaller of the numeric input and maximum. Also accepts a date-time input paired with a date-time maximum, returning whichever instant is earlier; a numeric maximum against a date-time input is a type-mismatch soft failure.
Input coercion: number
Arguments¶
| Name | Type | Optional | Default |
|---|---|---|---|
maximum |
number | no | — |
Arity: 1–1
Worked examples¶
→
→
Full fixture: transforms/transform-at_most.json