views:

612

answers:

4

Is it money, float, real, decimal, _____ ?

+5  A: 

Float is the sql type you are looking for.

Otávio Décio
You are right that is the best match.Sadly Float is one of the worst datatypes you can use in SQL Server if you will need to perform math onthe field later as it creates rounding errors since it is not exact. As a dba I would not want people to define fields as float as I have had to deal with the mess they create when you want to do reporting on the data in the database and the calculations are incorrect.
HLGEM
+10  A: 

That would be float.

See Mapping CLR Parameter Data.

RedFilter
+10  A: 

Answer to this and all mapping of types can be found here.

http://msdn.microsoft.com/en-us/library/bb386947.aspx

David Stratton
That chart is awesome, thanks for referencing it.
Matthew Vines
winner by a chart, I just printed it out and rubbed it all over my eyeballs, thanks!
shogun
+2  A: 

float matches best. real is only 32 bits in precision, so essentially useless.

See: http://msdn.microsoft.com/en-us/library/ms173773.aspx

Philippe Leybaert