ProtoFlux:Sign

From Resonite Wiki
Revision as of 09:49, 22 May 2024 by AmasterAmaster (talk | contribs) (Created a page for the SIgn node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Sign
N
*
Math

The Sign node takes in a number, and returns the sign represented as either a 1 (positive) or a -1 (negative). If the number is a zero (0), then it returns a zero (0).

Inputting Infinity makes it a 1 (positive), -Infinity makes it a -1 (negative), and NaN makes it a zero (0).

Inputs

N (Pseudo-generic)

The number to check the sign of.

Outputs

* (Pseudo-generic)

Returns the sign of that number represented as a 1 (positive), a -1 (negative), or a zero (0).