Calculate price from a given set of cash flows and a discount rate
Introduced in release: 1.0 Component: Generic Purpose:
Calculates price from a given set of cash flows, corresponding length of time, and a discount rate. Discounting is done on a linear basis for each cash flow. There is no compounding!
Special Considerations:
This routine should only be used with one cash flow! While it will return a result with more than one cash flow which is mathematically correct the result will be meaningless.
Alternatives:
This routine requires inputs normally provided by other interim routines. The cfs_pd routine uses the cash flows and relevant dates in computing a price.
Results:
The result is returned as the value of the function accurate to as many places as supported by a double precision value.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.