Floor
Rounds a number down to a whole number.
Node id math/floor
The Floor node outputs the largest whole number that is not greater than
value: 2.9 gives 2, and -2.1 gives -3.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| value | number | 0 |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | number |
Behaviour
- Downwards, also for negatives. Floor always rounds towards smaller numbers, so negative numbers move away from zero.
- Whole-number division. Floor of Divide
gives how many times
bfits intoa, for example the row of an element in a grid.