PC Review


Reply
Thread Tools Rate Thread

Decimal data type wont work!

 
 
Cirene
Guest
Posts: n/a
 
      23rd Oct 2007
I have a SQL Express db with a table field defined as data type
decimal(18,0).

When I type in .785 in the table field it rounds it to 1.

Any ideas why????


 
Reply With Quote
 
 
 
 
Cirene
Guest
Posts: n/a
 
      23rd Oct 2007
Why do I have to use float? Doesnt decimal indicate that you can use a
decimal?

"Cirene" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a SQL Express db with a table field defined as data type
>decimal(18,0).
>
> When I type in .785 in the table field it rounds it to 1.
>
> Any ideas why????
>



 
Reply With Quote
 
=?Utf-8?B?S2VycnkgTW9vcm1hbg==?=
Guest
Posts: n/a
 
      23rd Oct 2007
Cirene,

Isn't your specification saying that you want 0 digits to the right of the
decimal point?

Kerry Moorman


"Cirene" wrote:

> I have a SQL Express db with a table field defined as data type
> decimal(18,0).
>
> When I type in .785 in the table field it rounds it to 1.
>
> Any ideas why????
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Decimal data type? Sun Tzu Microsoft Excel Programming 6 7th Nov 2007 03:08 PM
Should I use SQL data type money or decimal given .NET datatype is decimal? Ronald S. Cook Microsoft C# .NET 4 15th Apr 2007 03:06 AM
decimal data type Microsoft VB .NET 4 21st Dec 2006 12:19 PM
Decimal data type S.L. Microsoft Access Form Coding 3 9th Nov 2003 03:39 PM
decimal data type Patrih Microsoft Access 2 18th Jul 2003 03:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:29 PM.