x-rays
3/15/2007 1:34:00 PM
Hi All,
I noticed a strange behavior about Float data type.
Declaring a variable with float data type, set the decimal number 19.44228
to the variable and Print the value of the variable. It prints the following
number 19.4423. If I execute a select statement to get the value of the
variable it results 19.44228.
declare @num as float
Set @num = 19.44228
Print @num
Select @num
Is this a bug?
Thanks in advance!
Software installed:
SQL Server 2005 SP2 (Developer Edition)