ProtoFlux:Ceil: Difference between revisions

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


The '''Ceil''' node rounds the input up to the next integer (towards positive infinity).
The '''Ceil''' node rounds the input up to the next integer (towards positive infinity).

Revision as of 23:24, 12 February 2024

Ceil
N
*
Math
1 2 -1 -2 -1 -2 1 2
ceil

The Ceil node rounds the input up to the next integer (towards positive infinity).

Inputs

N (Generic)

Numeric value to ceil.

Outputs

* (Generic)

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