ProtoFlux:Floor: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Floor (ProtoFlux) to ProtoFlux:Floor: Creating protoflux Namespace
Add graph
Line 11: Line 11:
]
]
|}}
|}}
{{#invoke:Plotter|Plot2D
|From=-2.5,-2.5
|To=2.5,2.5
|Plots=
[
{"Type": "function", "Function": "floor(x)", "Samples": 2, "Label": "floor", "Ranges": [
  {"To": "-2.0001"},
  {"From": "-2", "To": "-1.0001"},
  {"From": "-1", "To": "-0.0001"},
  {"From": "0", "To": "0.9999"},
  {"From": "1", "To": "1.9999"},
  {"From": "2"}
]}
]
}}


The '''Floor''' node rounds the input down to the previous integer (towards negative infinity).
The '''Floor''' node rounds the input down to the previous integer (towards negative infinity).

Revision as of 23:27, 12 February 2024

Floor
N
*
Math
1 2 -1 -2 -1 -2 1 2
floor

The Floor node rounds the input down to the previous integer (towards negative infinity).

Inputs

N (Generic)

Numeric value to floor.

Outputs

* (Generic)

The floor of the input with a matching type. For types with multiple values, each individual value is floored.