nexttoward: returns the next value after 'from' that is closer to 'towards'
//Declaration: float nexttowardf(float from, long double towards);
double nexttoward(double from, long double towards);
long double nexttowardl(long double from, long double towards);
f = nexttoward (2.3,1.2);
printf("%f " , f);
Related examples in the same category