Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I want to store negative temperature values in the table column.

Ex : -5231563.26xxx

What data types i want to use for storing the above values...?
Posted

1 solution

Use decimal(18,5)
 
Share this answer
 
Comments
gani7787 22-Sep-11 2:32am    
What will happen if i use float...?
Mehdi Gholam 22-Sep-11 2:34am    
You will get rounding errors, is you need the decimal precision.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900