floor
This block is part of the math group and was last modified in core v10.4.28.
floor v10.4.28 Returns the largest integer less than or equal to a given number.
In pins 1
- number required
number
Out pins 1
- Number
number
Rounds the number pin down toward -Infinity to the nearest integer. Numeric strings and booleans coerce; an unwired, nil, or non-numeric input outputs nil. Example: number=2.9 -> 2, number=-2.1 -> -3.
A typical wiring for floor: the number out pin feeds cast to value.
Version history
Introduced in v10.4.28.
Back to
math Return to the main group to view all sub-groups Back to number Return to the group to view all blocks within this group 