|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:23 AM
Points: 19,
Visits: 28
|
|
| What is the difference between Money and (Float or Decimal) Datatype. If we use Float or Decimal instead of Money, will we loose any functions..?
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, April 01, 2013 1:11 PM
Points: 104,
Visits: 247
|
|
Money can take upto 5 decimal. Whereas, if you need > 5 decimal places for a value go for decimal(n,m)
______________________________________________________________________
Ankit MCITP Database developer SQL 2008,MCTS Database Administration SQL 2008 "Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.”
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Today @ 3:20 PM
Points: 721,
Visits: 1,378
|
|
nagesh.prasad (1/16/2013) What is the difference between Money and (Float or Decimal) Datatype. If we use Float or Decimal instead of Money, will we loose any functions..?
Money and Decimal are fixed numeric datatypes while Float is an approximate numeric datatype. Results of mathematical operations on floating point numbers can seem unpredictable, especially when rounding is involved. Be sure you understand the significance of the difference before you use Float!
Also, Money doesn't provide any advantages over Decimal. If fractional units up to 5 decimal places are not valid in your currency or database schema, just use Decimal with the appropriate precision and scale.
|
|
|
|