Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:Floor: Difference between revisions

From Resonite Wiki
Colin The Cat (talk | contribs)
Add graph
Yosh (talk | contribs)
cleanup, match the ceil page
 
Line 12: Line 12:
|}}
|}}


{{#invoke:Plotter|Plot2D
The '''Floor''' node returns the floor of the input type, or the largest integral value less than or equal to the specified number. This is also known as "rounding towards negative infinity"
|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).


== Inputs ==
== Inputs ==
Line 39: Line 23:
=== * (Generic) ===
=== * (Generic) ===
The floor of the input with a matching type. For types with multiple values, each individual value is floored.
The floor of the input with a matching type. For types with multiple values, each individual value is floored.
== See Also ==
* [https://learn.microsoft.com/en-us/dotnet/api/system.math.floor#system-math-floor(system-decimal) Microsoft documentation for the <code>Math.Floor(Decimal)</code> method].


[[Category:ProtoFlux:Math]]
[[Category:ProtoFlux:Math]]

Latest revision as of 03:38, 5 June 2024

Floor
N
*
Math

The Floor node returns the floor of the input type, or the largest integral value less than or equal to the specified number. This is also known as "rounding 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.

See Also