#include <math.h>float nexttowardf(float from, long double towards); double nexttoward(double from, long double towards); long double nexttowardl(long double from, long double towards);

nexttoward( ), nexttowardf( ), and nexttowardl( ) were defined by C99.

The nexttoward( ) family of functions returns the next value after from that is closer to towards. They are the same as the nextafter( ) family, except that towards is a long double for all three functions.

A related function is nextafter( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net