bondyield1(cpn;mat;dcb;setl;price)
Returns the bond yield given price (regular semiannual payments).
Syntax
bondyield1(cpn;mat;dcb;setl;price)
Input
Argument | Type | Description |
---|---|---|
cpn |
integer or decimal | The annual coupon rate expressed as a percentage A scalar value or the name of a column |
mat |
integer | The maturity date A scalar value or the name of a column containing date values |
dcb |
text | The day count basis (dcb) A text value or the name of a column Generally, |
setl |
integer | The settlement date The |
price |
integer | The price (without accrued interest) expressed as a percentage A scalar value or the name of a column |
Note: One of the arguments must reference a column. This does not include
setl
, which cannot be a column name.Return Value
Returns the bond-equivalent yield expressed as a percentage as a decimal value.
The bondyield1(cpn;mat;dcb;setl;price)
handles N/A values as follows:
Note: 1010data has not audited these computations and takes no responsibility for their
accuracy or precision. Please do not use the result of this function to trade securities
without independently verifying the result.