[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Frac                     Returns Fractional Portion of a Value

 Frac(X : Real) : Real;
 Frac(X : Integer) : Real;

    Returns the fractional portion of X--i.e., the portion of X to the
    right of the decimal point. If X is an integer, Frac(X) = 0. Note that
    X := Int(X) + Frac(X).

               X    An integer or real value (constant, variable, function
                    call, or expression).

         Limits:    none

  -------------------------------- Example ---------------------------------

           X := Frac(34.992);       { X = 0.992 }

See Also: Int Trunc Round
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson