This should help
Conversion of YearFrac in C#
Moyra Bonjean
21
Reputation points
Hi all,
I am looking for a C# code that will enable the user to find the same Yearfrac coefficient as the one returned using the Yearfrac function in Excel. I have already tried several manners and the best one, for the moment, is dividing the number of years by 365.2425 in the oce. However, I still have small differences, compared to the result I have using Excel.
Could someone help me?
Thanks in advance!
Moyra
Developer technologies | C#
11,573 questions