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
Last revisionBoth sides next revision
functions:max [2017/03/15 10:40] – created korshunfunctions:max [2019/08/26 01:18] – [max] korshun
Line 3: Line 3:
 ''num max(num a, num b)'' ''num max(num a, num b)''
  
-[[:types|num - any numeric type (int or fixed)]]+[[: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.txt · Last modified: 2019/08/26 01:19 by korshun