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

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

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

llrint

Item Value Header file math.h Declaration long long int llrintf(float arg);long long int llrint(double arg);long long int llrintl(long double arg); Return returns the value of arg rounded to the nearest long long integer.


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

 #include <stdio.h>
 int main(void)
 {
   printf("%l", llrintl (111111111111111.2));
   return 0;
 }</source>