Older Newer
Tue, 24 Dec 2019 03:54:11 . . . . SyneRyder [fmin now has a variable argument list]


Changes by last author:

Added:
= fmin =

== Syntax ==

double fmin(double a, double b, ...)

== Arguments ==

:a

::Any floating-point double value.

:b

::Any floating-point double value.

:...

::Any number of floating-point double values.

== Return ==

The lower value of all given parameters.

== Description ==

Returns the least of the given values.

A common use for fmin is to truncate a variable to a certain upper boundary.

== Example ==

<code>

double p = fmin(1.0, 2.0); // sets p to 1.0

</code>

== See Also ==

add, fmax, max, min, sub