ProtoFlux:Div

From Resonite Wiki
÷
A
*
B
Operators

The Div node takes in 2 inputs and returns the calculated result. The second input (B) will divide the first input (A) into sub sections (mathematically speaking), and the result will show how many of our first value will fit into the second value.

If you want the remainder of a division, use the Value Mod node instead. If you want to divide over a set repeated range from a value, use the Value Repeat node instead.
It is typically recommended to avoid dividing anything by 0, it is undefined and returns Infinity in the FrooxEngine. Conversely, dividing anything by Infinity will return 0.

Division is non-commutative (known as Anticommutative), which means where you put your inputs matters.

Inputs

A (Pseudo-Generic)

The value we have.

B (Pseudo-Generic)

The value we want to divide from (basically, how many times to cut our first value into to fit these many sub sections).

Outputs

* (Pseudo-Generic)

The new result from this operation.

Further Reading

Magic Numbers For Division

At a low level, computers use a special number to do multiplication for their division operations, known as a magic number. Each processor is different and may have a different number for calculations, but the video below should explain this concept a bit better.

See Also

  • Wikipedia's definition of division.
  • Microsoft's documentation on the division operator.