VMS Help  —  CRTL  lrint
    Rounds to the nearest integer value, rounding according to the
    current rounding direction.

    This function is OpenVMS Alpha and Integrity servers only.

    Format

      #include  <math.h>

      long lrint  (double x);

      long lrintf  (float x);

      long lrintl  (long double x);

1  –  Argument

 x

    A real value.

2  –  Description

    The lrint functions return the rounded integer value of x,
    rounded according to the current rounding direction.

3  –  Return Values

    n                  Upon success, the rounded integer value.
Close Help