qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
NPV# Function
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
          Financial Functions available in Professional Edition only
──────────────────────────────────────────────────────────────────────────────
 Returns the net present value of an investment based on a series of periodic
 cash flows (payments and receipts) and a discount rate. Requires FINANCE.QLB
 (FINANCE.LIB when compiling); include FINANCE.BI.
 
    NPV# (rate#, valuearray#(), valuecount%, status%)
 
    ■ rate#            Discount rate over the length of the period,
                       expressed as a decimal
 
    ■ valuearray#()    Array of cash flow values
 
    ■ valuecount%      Total number of cash flow values
 
    ■ status%          Variable that returns a value indicating calculation
                       failure or success:
                       0 = success
                       1 = failure
 
 See Also
    Financial Function Summary   $INCLUDE Metacommand   Quick Libraries