Package org.jquantlib.instruments.bonds

Examples of org.jquantlib.instruments.bonds.ConvertibleFloatingRateBond.NPV()


          + "\n    calculated: " + euFloating.NPV()
          + "\n    expected:   " + floating.settlementValue()
          + "\n    error:      " + error);
    }

    error = Math.abs(amFloating.NPV() - floating.settlementValue());
    if (error > tolerance) {
      fail("failed to reproduce floating-rate bond price:"
          + "\n    calculated: " + amFloating.NPV()
          + "\n    expected:   " + floating.settlementValue()
          + "\n    error:      " + error);
View Full Code Here


    }

    error = Math.abs(amFloating.NPV() - floating.settlementValue());
    if (error > tolerance) {
      fail("failed to reproduce floating-rate bond price:"
          + "\n    calculated: " + amFloating.NPV()
          + "\n    expected:   " + floating.settlementValue()
          + "\n    error:      " + error);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.