Avatar of dbrennecke
dbrennecke
 asked on

Float ; 3/2 is not 1

Likely a dumb questionb...
but

DECLARE @Table TABLE(
Value FLOAT,
)
UPDATE @Table
SET Value = 3/2
SELECT * from @Table

Value is displayed as 1 instead of 1.5

However, if I 'SET Value = 1.5' then it displays as 1.5.

What am I doing wrong?
Microsoft SQL Server 2005

Avatar of undefined
Last Comment
Arkware

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Arkware

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck