C Tutorial/math.h/llround — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:32, 25 мая 2010
llround
Item Value Header file math.h Declaratin long long int llroundf(float arg);long long int llround(double arg);long long int llroundl(long double arg); Return returns the value of arg rounded to the nearest long long integer.
Values precisely between two values, such as 3.5, are rounded up.
<source lang="cpp">#include <math.h>
#include <stdio.h> int main(void) { printf("%l", llround (1.2)); return 0; }</source>