ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:max

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
functions:max [2017/03/15 10:40] – created korshunfunctions:max [2019/08/26 01:19] (current) – [max] korshun
Line 1: Line 1:
 ====== max ====== ====== max ======
 {{tag>math}} {{tag>math}}
-''num max(num a, num b)''+''[[:types|num]] max([[:types|num]] a, [[:types|num]] b)''
  
-[[:types|num - any numeric type (int or fixed)]] 
  
 ===== Description ===== ===== Description =====
-Returns the greaterr of two numbers.+Returns the greater of two numbers.
  
 ===== Examples ===== ===== Examples =====
 <code> <code>
-min(3, 5) -> 5 +max(3, 5) -> 5 
-min(5, 3) -> 5 +max(5, 3) -> 5 
-min(8.0, 7.5) -> 8.0+max(8.0, 7.5) -> 8.0
 </code> </code>
functions/max.1489567220.txt.gz · Last modified: 2017/03/15 10:40 by korshun