Login  Register

Re: Bug: date.cpp

Posted by Ferdinando Ametrano-6 on Dec 21, 2000; 2:27pm
URL: http://quantlib.414.s1.nabble.com/Bug-date-cpp-tp1643p1644.html

>I agree that
>
>>Year y = (theSerialNumber - 1)/365.25
>
>might be a better guess. However, I'd like to leave the check, just in
>case (365.25 isn't the exact value either)
365.25 implies a couple of casting int->double->int that cannot be left
implict (coding guidelines no. 45 http://www.geosoft.no/style.html#Types ;-)

ciao -- Nando