HP 3000 Manuals

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


HP Business BASIC/XL Reference Manual

DROUND 

The DROUND function rounds a number to a specified number of digits.  The
result is of type DECIMAL.

Syntax 

DROUND(n1,n2)

Parameters 

n1               The number to be rounded.  Although this can be of any
                 numeric type, it is converted to DECIMAL.

n2               The number of digits that n1 is to be rounded to.

Examples 

     10 A = DROUND(.3214,3)   !A = .321
     20 B = DROUND(.3215,3)   !B = .322
     30 C = DROUND(5.07,2)    !C = 5.1



MPE/iX 5.0 Documentation