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.

Name

fmin()

Examples
double c = fmin(-3.5, 4.3);  // Sets c to -3.5
double d = fmin(2.7172, 2.40);  // Sets d to 2.4
Description The fmin() function returns the lesser of the two values x and y. If an argument is NaN, the other argument is returned. If both arguments are NaN, NaN is returned.
Syntax
fmin(x, y)
Parameters
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