HELPLIB.HLB  —  CRTL  lrint
    Rounds to the nearest integer value, rounding according to the
    current rounding direction.

    This function is supported on OpenVMS Integrity servers and
    Alpha 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