MS SQL Server decimal data type rounds up

Posted by Jonesy on Stack Overflow See other posts from Stack Overflow or by Jonesy
Published on 2010-04-06T08:27:35Z Indexed on 2010/04/06 8:33 UTC
Read the original article Hit count: 337

Filed under:
|
|
|

Hui folks,

I need to be able to store numbers like 3.5 in my table. So I've used the decimal type field. But if I enter 3.5 it round it up to 4. Am I being stupid or is it not the point of decimal to have a decimal point?

Thanks,

Jonesy

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2008