Link to home
Start Free TrialLog in
Avatar of sbornstein2
sbornstein2

asked on

C# Decimal or Double for Database Decimal

Hello all,

We have a database that was using floats for many fields that we are changing to Decimal(18, 2).    Question is in C# app code we use Double everywhere.  Best to change these now to Decimal datatype or leave as is and double will be fine?
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
your probably safe with either one.. I always recommend if your talking about a currency value to use Decimal though :)
Avatar of sbornstein2
sbornstein2

ASKER

thanks
I am wondering if the precision of 2 decimal places would make double a better candidate.
I would go with decimal there as well