I have two numbers, and need to get returned the lower one. Is there any function I could use? Sure it\'s a easy task, I could do an if-statement. I just want to know.
The C standard library includes several min() functions that, given two numbers, will return the lower of the two:
min()
double fmin(double x, double y); long double fminl(long double x, long double y); float fminf(float x, float y);
To use these, just #include .
#include