Returns the price of a discount bond given the yield.

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Priceyield(
	DateTime settlement,
	DateTime maturity,
	double yield,
	double redemption,
	DayCountBasis basis
)
Visual Basic (Declaration)
Public Shared Function Priceyield ( _
	settlement As DateTime, _
	maturity As DateTime, _
	yield As Double, _
	redemption As Double, _
	basis As DayCountBasis _
) As Double
Visual C++
public:
static double Priceyield(
	DateTime settlement, 
	DateTime maturity, 
	double yield, 
	double redemption, 
	DayCountBasis^ basis
)

Parameters

settlement
Type: System..::.DateTime
The DateTime settlement date of the security.
maturity
Type: System..::.DateTime
The DateTime maturity date of the security.
yield
Type: System..::.Double
A double which specifies the security's yield.
redemption
Type: System..::.Double
A double which specifies the security's redemption value per $100 face value.
basis
Type: Imsl.Finance..::.DayCountBasis
A DayCountBasis object which contains the type of day count basis to use.

Return Value

A double which specifies the price per $100 face value of a discounted security.

Remarks

It is computed using the following:

{{\it redemption} \over {1 + \left(
            {{{\it DSM} \over B}} \right) {\it yield}}}
In the equation above, {\it DSM} represents the number of days starting at the settlement date and ending with the maturity date. B represents the number of days in a year based on the annual basis.

See Also