Modulo(%) (LogiXノード)

From Neos Wiki
Revision as of 13:49, 14 February 2022 by Aesc (talk | contribs) (Created page with "{{Infobox Logix Node | Name = % | Image = noframe | 128px | '%' LogiX node | Input0Type = Float | Input0Name = A | Input1Type = Float | Input1Nam...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

NodeMenu-Operators/ja