------------------------------------------------------------------------------Hi,I have an LIBOR index that is linked to a flat forward-curve. Although this is unrealistic, I just want it to test QuantLib's implementation.My fixed rate is 0.10, so I expect if I put a breakpoint inside QuantLib, I would see it. However, the rate I get is 0.100459737, please take a look at my screenshot.My suspicion is that QuantLib calculates the forward rate by dividing two discount factors in IborIndex::forecastFixing, and thus causing some floating errors. Am I right?My code and screenshot are here:RelinkableHandle<YieldTermStructure> termStructure;
termStructure.linkTo(flatRate(t_, 0.10, Actual360()));
<Create a swap>
std::cout << swap->NPV() << std::endl;
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Free forum by Nabble | Disable Popup Ads | Edit this page |