llrint : llrint « math.h « C Tutorial






ItemValue
Header filemath.h
Declarationlong long int llrintf(float arg);
long long int llrint(double arg);
long long int llrintl(long double arg);
Returnreturns the value of arg rounded to the nearest long long integer.


#include <math.h>
  #include <stdio.h>

  int main(void)
  {
    printf("%l", llrintl (111111111111111.2));

    return 0;
  }








19.42.llrint
19.42.1.llrint