accrfrac
Fraction of coupon period before settlement
Syntax
Description
returns the fraction of the coupon period before settlement. Fraction
= accrfrac(Settle
,Maturity
)
Use accrfrac
for computing accrued interest.
accrfrac
calculates accrued interest for bonds with regular
or odd first or last coupon periods.
Required input arguments must be number of bonds,
NUMBONDS
-by-1
or
1
-by-NUMBONDS
, conforming vectors or
scalars.
returns the fraction of the coupon period before settlement with optional
inputs.Fraction
= accrfrac(___,Period
,Basis
,EndMonthRule
,IssueDate
,FirstCouponDate
,LastCouponDate
)
Optional input arguments must be either
NUMBONDS
-by-1
or
1
-by-NUMBONDS
conforming vectors, scalars,
or empty matrices.