Re: yearFraction function

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/yearFraction-function-tp4080p4081.html

On 10/04/2005 02:27:22 PM, Guowen Han wrote:
> Could someone explain why the member function yearFraction(d1, d2)  
> in DayCounter crash the program when d1 and d2 are very close (for
> instance, 2 days difference in my program)?

The issue is fixed in CVS (and therefore in next release.)
However, it is advisable to also pass the start and end of the  
reference period when using actual/actual ISMA.

Later,
        Luigi

----------------------------------------

The first rule of intelligent tinkering is to save all the parts.
-- Paul Erlich