HP 3000 Manuals

TRUNC [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

TRUNC 

The TRUNC function returns the integer part of a number.  The result is
of the same numeric type as the argument.

Syntax 

TRUNC(n)

Parameters 

n                The number that is to be evaluated.  This is of any
                 numeric type.

Examples 

     10 A = TRUNC(57.571)    !A =  57
     20 B = TRUNC(-57.541)   !B =  -57



MPE/iX 5.0 Documentation