"For money, always decimal" ???

Posted by Dryadwoods on Stack Overflow See other posts from Stack Overflow or by Dryadwoods
Published on 2010-04-08T22:56:18Z Indexed on 2010/04/08 23:03 UTC
Read the original article Hit count: 284

Filed under:

Well, the rule "For money, always decimal" isn't applied inside the Microsoft development team, because if it was:

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Financial.IPmt and all the other methods would receive/return decimal and not double as it is.

Now I wonder if I can use this methods without worry with round mistakes?

Should I use some other libraries to work with finances? If yes, could you point me some good ones (for C# use) ?

Thank you.

© Stack Overflow or respective owner

Related posts about datatypes