Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.



double c = fmax(-3.5, 4.3);  // Sets c to 4.3
double d = fmax(2.7172, 2.40);  // Sets d to 2.7172
Description The fmax() function returns the greater of the two values x and y. If an argument is NaN (not a number), the other argument is returned. If both arguments are NaN, NaN is returned.
fmax(x, y)
x double, float or int
y double, float or int
Returns double
Usage Application
Updated on July 07, 2011 11:08:17pm PDT

Creative Commons License