financial calculator question

saher edris saher_edris at yahoo.com
Fri Dec 17 07:58:26 EST 2004


I went through the  financial calculator code in Gnucash and i think the computation for the
 Julain day is not giving accurate results .
your code .
 
yr = y +( m - 3.0)/ 12.0 ;
ljdn = (367.0*yr+pfac)-(2*yr)+(yr/4.0)+d+1721117
 
but after auditing the results is does not give the right Day.
 
i think this one is giving the exact day 

 
yr = y +( m - 1.89)/ 12.0 ;
ljdn = (367.0*yr+pfac)-(2*yr)+(yr/4.0)+d+1721117
 
I'm not being able to tell the reason for using the 1.89 factor .. could anyone explain why ?
 
Regards
 
Saher Edris


		
---------------------------------
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20041217/c80b8a05/attachment.htm


More information about the gnucash-devel mailing list