C Tutorial/math.h/rint — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:32, 25 мая 2010

rint

Item Value Header file math.h Declaration float rintf(float arg);double rint(double arg);long double rintl(long double arg); Return returns the value of arg rounded to the nearest integer.


<source lang="cpp">#include <math.h>

 #include <stdio.h>
 int main(void)
 {
   printf("%f\n", rint (11));
   return 0;
 }</source>