Max: Difference between revisions

From Fancade Wiki
 
m (Fixed Typo)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:Max1.png]]
{{Block
|image=Max.png
|type=s
|folder=Math
|input1={{Port|n|Num1}}
|input2={{Port|n|Num2}}
|output1={{Port|n|Bigger Num}}
}}


Outputs the bigger number.
Outputs the bigger [[number]].


[[File:Screenshot_2022-02-14-07-52-38-47_6c69499164362a0dbe2f1dfe7c62199a.jpg/]]
{{Image|Max example.jpg|The maximum of 3 and 5 is 5. The maximum of -2 and 0 is 0.}}


== Notes ==
* If one of the inputs is <code>nan</code>, the other value will be outputted regardless.
== Related ==
* [[Min]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest 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 is nan, the other value will be outputted regardless.

Related