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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 sql server 2000 and 2005

Author  Topic 

jith912
Starting Member

1 Post

Posted - 2008-06-13 : 05:28:16
hi


in ms sql server 2000 if we enter a value 6.0(float) it is stored as 6.000002 but in sql 2005 it is stored as 6.000000 why???




visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-13 : 06:09:39
Didint get that. How could 6.0 be stored as 6.000002 ?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-06-13 : 07:00:26
In both SQL Server 2000 and SQL Server 2005 I get plain "6" as result. No decimals at all.

declare @f table (f float)
insert @f select 6.0

select * From @f




E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-13 : 07:39:44
Are you taking this value from some field after performing some calculations or casting? We need some background info on when you noticed this discrepancy if at all.
Go to Top of Page
   

- Advertisement -