gpt4 book ai didi

c# - 在 C# 中模拟 Excel 的 YearFrac

转载 作者:行者123 更新时间:2023-12-04 21:17:28 24 4
gpt4 key购买 nike

如何获得与 Excel YearFrac function 相同的结果在我的 C# 应用程序中?

Calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the end_date). Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or obligations to assign to a specific term.

最佳答案

这是一个很好的snippet .

YearFrac 函数的算法实际上非常复杂。也许 this article可以为您提供更多细节。

关于c# - 在 C# 中模拟 Excel 的 YearFrac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8565255/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com