Skip to content

Bars Specification 0.1.0 — Transform: floor

Category: math · Since: 0.1.0

Rounds down to the nearest integer.

Rounds the numeric input down to the nearest integer. A non-numeric input is a soft failure (TypeMismatch) yielding null.

Input coercion: number

Arguments

None.

Arity: 0–0

Worked examples

{{ n | floor }}

1
{{ n | floor }}

-2

Full fixture: transforms/transform-floor.json