lrint(), llrint()

Rounds off to an integral value according to the current rounding direction.

  #include <math.h>
  
  long int lrint(double x);
  
  long int lrintf(float x);
  
  long int lrint(long double x);
  
  long long int llrint(double x);
  
  long long int llrintf(float x);
  
  long long int llrint(long double x);    
Parameter

x

The value to be computed.

Remarks

These functions round x to an integral value in floating-point format using the current rounding direction. Unlike the rint() functions, these functions return their results as integer values.

This facility may not be available on configurations of the EWL that run on platforms that do not have floating-point math capabilities.