![]() |
C - Entwicklung Bibliotheks-Funktionen: Math Homepage von PS-Trainer - C-Entwicklung - Mathematik - an PS-Trainer |
|
| Math and related | Minimum and Maximum |
| min | Minimum, return the smaller of two values. |
| max | Maximum, Returns the larger of two values. |
| __min Returns the smaller of two values. type __min( type a, type b );
Remarks The __min macro compares two values and returns the value of the smaller one. The arguments can be of any numeric data type, signed or unsigned. Both arguments and the return value must be of the same data type. Subject: Floating-Point Support Routines Keywords: See also __max |
||||||
| Return Value The smaller of the two arguments Parameters
|
||||||
| Example /* MINMAX.C */ #include <stdlib.h> void main( void ) printf( "The larger of
%d and %d is %d\n", a, b, __max( a, b ) ); |
| __max Returns the larger of two values. type __max( type a, type b );
Remarks The __max macro compares two values and returns the value of the larger one. The arguments can be of any numeric data type, signed or unsigned. Both arguments and the return value must be of the same data type. Subject: Floating-Point Support Routines Keywords: See Also __min |
||||||
| Return Value __max returns the larger of its arguments. Parameters
|
||||||
|
Example #include <stdlib.h> void main( void ) printf( "The larger of
%d and %d is %d\n", a, b, __max( a, b ) ); |
| Aktuelle Daten dieser Seite | Letzte Änderung: |
| |