Hi
For Your Information:
Ths following results for different data types...
AS u know very well There is no double data typein SQL server....instead of that real.Float.. we can use....
select 0.68+ .49
declare @a as float,
@a1 as float
set @a = 0.68
set @a1 = 0.49
select @a+@a1
--Output = 1.1699999999999999
declare @a as real,
@a1 as real
set @a = 0.68
set @a1 = 0.49
select @a+@a1
--Output : 1.1700001
declare @a as decimal,
@a1 as decimal
set @a = 0.68
set @a1 = 0.49
select @a+@a1
--Output : 1
declare @a as money,
@a1 as money
set @a = 0.68
set @a1 = 0.49
select @a+@a1
---Output : 1.1700
why there is a lot of sum up difference in Real/float between Sql and .net for the same category of data Excet Money Column in SQl / Decima in ,Net.
Please Advice Me.
thanks
Aravindkumar.P