Modulo (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語 • ‎한국어
%
'%' LogiX node
Inputs
  Float A
  Float B
Outputs
  Float *

The % node divides A by B and outputs the remainder.

Usage

The top input is the number to divide, the bottom what we are dividing by. Returns the remainder of division.

Examples

Distance

An example of Modulo. Here, the remainder is 7.

Distance

We can use the Modulo node to determine whether a number is even or odd. To do this, divide the number by 2. 0 indicates even and 1 indicates odd.

Node Menu

Operators
Back Bool Vectors Nullable Parsing - ! !=
% & ?: ?? ^ | |V|
|V|² + +/- +1 < << ==
> >> × ×dT ÷ ÷dT
° · 0 1 -1 1/x
1-x A^-1 Cross Determinant Distance Filter Invalid Get Type
IsInfinity IsNaN IsNull Mask Matrix Element -n NAND
NOR Normalized NotNull Pack Columns Pack rgba Pack Rows Pack xy
Pack xyz Pack xyzw Project Reflect ROL ROR To String
Transpose Unpack Columns Unpack Rows Unpack xy Unpack xyz Unpack xyzw
XNOR