BT

Financial Functions for .NET

by Jonathan Allen on Dec 26, 2008 |

Considering that the .NET framework is easily on the short list for the most popular business application platform, it is surprising that financial functions are largely ignored. Sure there is a handful of methods squirreled away in VisualBasic.Financial, but most developers don’t even think to look there. It is no wonder companies often turn to Excel.

Luca Bolognese wears many hats. He is the lead program manager for C#, VB, and F# languages and compilers, as well as the DLR framework. Yet somehow he was able to take some time to reimplement 50 financial functions from Excel in F#.

The vast majority of the functions were coded to match Excel’s logic. Unfortunately Excel’s methods are designed for backwards compatibility and do not necessarily give the right answers. To wit Luca says,

My goal is to replicate Excel results (right and wrong). Feel free to contribute to the effort by coding what you think is the right solution and I'll add an ExcelCompliant flag to the function to conditionally invoke your code.

The source code can be downloaded from MSDN Code Gallery. It is released under the Microsoft Public License.

Hello stranger!

You need to Register an InfoQ account or to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2013 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT