Max: Difference between revisions

204 bytes removed ,  23 August
Improve description
mNo edit summary
(Improve description)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
}}
}}


Outputs the bigger [[number]].
Outputs the bigger of the two input [[number]]s.


{{Image|Max example.jpg|The maximum of 3 and 5 is 5. The maximum of -2 and 0 is 0.}}
{{Image|Max example.jpg|The maximum of 3 and 5 is 5. The maximum of -2 and 0 is 0.}}
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 is <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 ==