Max: Difference between revisions

From Fancade Wiki
mNo edit summary
(Moved some information to a different page)
Line 14: Line 14:
== Notes ==
== Notes ==


If one of the inputs are ''nan'', the other value will be outputted regardless.
* If one of the inputs are <code>nan</code>, the other value will be outputted regardless.  
 
This can be used in conjunction with [[Divide]] to check if a number is greater than another, without using [[If]]:
 
{{Image|Greater than no if.png}}
 
The less-than operation is obtained by replacing the left Max block to [[Min]].


== Related ==
== Related ==

Revision as of 17:08, 17 July 2024

Max
Max.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Num1
Num2
Outputs Bigger Num

Outputs the bigger number.

The maximum of 3 and 5 is 5. The maximum of -2 and 0 is 0.

Notes

  • If one of the inputs are nan, the other value will be outputted regardless.

Related