C Tutorial/math.h/nexttoward — различия между версиями
| Admin (обсуждение | вклад) м (1 версия: Импорт контента...) | Admin (обсуждение | вклад)  м (1 версия: Импорт контента...) | 
| (нет различий) | |
Текущая версия на 10:32, 25 мая 2010
nexttoward
Item Value Header file math.h Declaration float nexttowardf(float from, long double towards);double nexttoward(double from, long double towards);long double nexttowardl(long double from, long double towards); Return returns the next value after "from" that is closer to "towards".
   
#include <math.h>
  #include <stdio.h>
  int main(void)
  {
      double f;
      f = nexttoward (2.3,1.2);
     
      printf("%f " , f);
  }