Main Index |
TIPS Home |
ok_givenok_given (routine)
Validate a given value for dollar price, yield, or discount rate
Introduced in release: 1.0
Component: Generic
Purpose:
Tests the given value for a price/yield/discount calculation to be sure it is valid. given is either a price, a yield, etc., based on the value of given_flag.
Results:
The value of the function is true (1) if the value is valid. The value of the function is false (0) if the value is invalid. The variable status will contain the reason it is invalid.
Error Conditions:
The variable status contains a non zero value upon returning from the function when the input contains an error.
4001 = given money market yield is less than or equal to zero
4002 = given price is less than or equal to zero
4003 = given discount rate is less than or equal to zero
4004 = given coupon equivalent yield is less than or equal to zero
4005 = given bond equivalent yield is less than or equal to zero
4011 = given IRR is less than or equal to zero
4012 = given total dollar amount is less than or equal to zero
| Last Mod Date: 02/02/1995 | © 2001 TIPS, Inc. | Doc Version: 5.0 |