Divide: Difference between revisions

From Fancade Wiki
No edit summary
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
Divide.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Num1
Num2
Outputs Num1 / Num2

Divides the first input number by the second input number.

Example
Example

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.

Related