You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This returns the following error: ERROR: negative time not allowed! Time fraction is -4.5. If I re-run the last two lines, the code works, however, and I get a price of 100. Am I doing something wrong in the first run of the code?
The text was updated successfully, but these errors were encountered:
I'm trying to price a fixed-rate coupon bond using the bond's yield. The code I'm using is the following:
This returns the following error:
ERROR: negative time not allowed! Time fraction is -4.5
. If I re-run the last two lines, the code works, however, and I get a price of 100. Am I doing something wrong in the first run of the code?The text was updated successfully, but these errors were encountered: