Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ZarrinPour
Yak Posting Veteran
66 Posts |
Posted - 2008-05-03 : 06:54:33
|
Hi allI have a Float Field in my table with following values:1.637.4235.710.58every thing is ok BUT when i Select Data from this table in QUERY ANALIZER environment with (Select * from mytable) , Query Analizer shows me the following values:1.62999999999999997.419999999999999935.7100000000000010.57999999999999996Why? while i don't have this problem in Enterprise manager !!!Thanks in advance.Kind Regards. |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-05-03 : 07:17:08
|
If you want exact precision, useselect cast(col as decimal(16,2)) from mytableMadhivananFailing to plan is Planning to fail |
|
|
ZarrinPour
Yak Posting Veteran
66 Posts |
Posted - 2008-05-03 : 07:31:33
|
quote: Originally posted by madhivanan If you want exact precision, useselect cast(col as decimal(16,2)) from mytableMadhivananFailing to plan is Planning to fail
Thanks madhivananBut what's wrong with Query Analizer? is there any option for this?I couldn't find any !!Any way thanks. |
|
|
|
|
|