Fraction of coupon period before settlement

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(`Settle`

,`Maturity`

,`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.

`cfamounts`

| `cfdates`

| `cpncount`

| `cpndaten`

| `cpndatenq`

| `cpndatep`

| `cpndatepq`

| `cpndaysn`

| `cpndaysp`

| `cpnpersz`

| `datetime`

Was this topic helpful?