Modulo
DataTarget independent
math.moduloGives the remainder of A divided by B; decimals are supported and a zero divisor fails.
Example use
For example, take the remainder of 7 divided by 3 to get 1, then connect the result to a numeric input.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 2
- Value A
aNumber The first operand or value to compare; use the type shown below.
Default availableDefault:0- Value B
bNumber The second operand or value to compare; use the type required by this node.
Default availableDefault:0
Data outputs 1
- Result
resultNumber The result of this data operation, with its type determined by the matching inputs.
Version and node identity
Version 1.0.0
sha256:0d09c8c77debf1caca423af2cbb31c0cc9f27921c01b8d201160caa61d16bd81