.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe

Decimal vs Float (Single) or Double

October 14, 2008 By: Dave Category: none

money-016 When you need to deal with a number that is a fraction, what do you specify for its type?  If you are like most programmers I know, you’ll reach for Float (Single if you are using VB) or Double.

If you are working with currency, though, this could get you into a lot of trouble.

Here’s why.

(more…)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!