Divide: Difference between revisions
No edit summary |
-u ndefined- (talk | contribs) m (Add notes and related section) |
||
| Line 12: | Line 12: | ||
[[File:Divide example.jpg|frameless|center|Example]] | [[File:Divide example.jpg|frameless|center|Example]] | ||
== Notes == | |||
If the denominator (Num2) is 0 the result returns <code>inf</code>, the sign determined by the numerator. However, if both are 0 then the result returns <code>nan</code>. | |||
== Related == | |||
* [[Add Numbers]] | |||
* [[Subtract Numbers]] | |||
* [[Multiply]] | |||
[[Category:Blocks]] | [[Category:Blocks]] | ||
Latest revision as of 15:56, 3 July 2024
Divide
| Type | Script block |
| Collider | None |
| Folder | Math |
| Ports | |
|---|---|
| Inputs | Num1 Num2 |
| Outputs | Num1 / Num2 |
Divides the first input number by the second input number.

Notes
If the denominator (Num2) is 0 the result returns inf, the sign determined by the numerator. However, if both are 0 then the result returns nan.