a port of the Processing Visualization Language
Name

max()

Examples
int a = max(5, 9);            // Sets "a" to 9

int b = max(-4, -12);         // Sets "b" to -4

float c = max(12.3, 230.24);  // Sets "c" to 230.24

int[] list = { 9, -4, 230.24 };

int h = max(list);            // Sets "h" to 230.24
Description Determines the largest value in a sequence of numbers.
Syntax
max(value1, value2)

max(value1, value2, value 3)

max(array)
Parameters
value1 int or float
value2 int or float
value3 int or float
array int or float array
Usage Web & Application
Related min()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub