VMS Help  —  CRTL  trunc
    Truncates the argument to an integral value.

    This function is supported on OpenVMS Integrity servers and
    Alpha only.

    Format

      #include  <math.h>

      double trunc  (double x);

      float truncf  (float x,);

      long double truncl  (long double x);

1  –  Argument

 x

    A floating-point number.

2  –  Return Value

    n                  The truncated, integral value of the argument.
Close Help