PC Review


Reply
Thread Tools Rate Thread

Displaying digits after the decimal point

 
 
Amanda
Guest
Posts: n/a
 
      11th Jan 2008
In my table I have a field for quantity. I have the fieldsize set to double
and the decimal places set to 2. However it always rounds to a whole number.
For example when I put in 1.25 it rounds to 1....how can I make it display
the decimal points?


 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      11th Jan 2008
When you set the Data Type to Number, the default Field Size (bottom
left-hand corner) is set to Long Integer. Long Integers cannot hold decimal
values. Change the field size to Single or Double.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Amanda" <(E-Mail Removed)> wrote in message
news:7F1DEDD8-5ED7-4526-8307-(E-Mail Removed)...
> In my table I have a field for quantity. I have the fieldsize set to
> double
> and the decimal places set to 2. However it always rounds to a whole
> number.
> For example when I put in 1.25 it rounds to 1....how can I make it display
> the decimal points?
>
>



 
Reply With Quote
 
Daniel Pineault
Guest
Posts: n/a
 
      11th Jan 2008
Does this happen when you are entering your value using a form or directly in
the table?
--
Daniel Pineault






"Amanda" wrote:

> In my table I have a field for quantity. I have the fieldsize set to double
> and the decimal places set to 2. However it always rounds to a whole number.
> For example when I put in 1.25 it rounds to 1....how can I make it display
> the decimal points?
>
>

 
Reply With Quote
 
Amanda
Guest
Posts: n/a
 
      11th Jan 2008
It happens in both instances, whether I enter it through a form or through
the table it still does this.

"Daniel Pineault" wrote:

> Does this happen when you are entering your value using a form or directly in
> the table?
> --
> Daniel Pineault
>
>
>
>
>
>
> "Amanda" wrote:
>
> > In my table I have a field for quantity. I have the fieldsize set to double
> > and the decimal places set to 2. However it always rounds to a whole number.
> > For example when I put in 1.25 it rounds to 1....how can I make it display
> > the decimal points?
> >
> >

 
Reply With Quote
 
Amanda
Guest
Posts: n/a
 
      11th Jan 2008
As I stated in my original message I have the field size set to double.

"Douglas J. Steele" wrote:

> When you set the Data Type to Number, the default Field Size (bottom
> left-hand corner) is set to Long Integer. Long Integers cannot hold decimal
> values. Change the field size to Single or Double.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Amanda" <(E-Mail Removed)> wrote in message
> news:7F1DEDD8-5ED7-4526-8307-(E-Mail Removed)...
> > In my table I have a field for quantity. I have the fieldsize set to
> > double
> > and the decimal places set to 2. However it always rounds to a whole
> > number.
> > For example when I put in 1.25 it rounds to 1....how can I make it display
> > the decimal points?
> >
> >

>
>
>

 
Reply With Quote
 
Dale Fye
Guest
Posts: n/a
 
      11th Jan 2008
Have you checked the Format property?

What happens when you change it to a Decimal rather than Double data type?

--
Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.



"Amanda" wrote:

> As I stated in my original message I have the field size set to double.
>
> "Douglas J. Steele" wrote:
>
> > When you set the Data Type to Number, the default Field Size (bottom
> > left-hand corner) is set to Long Integer. Long Integers cannot hold decimal
> > values. Change the field size to Single or Double.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >
> > "Amanda" <(E-Mail Removed)> wrote in message
> > news:7F1DEDD8-5ED7-4526-8307-(E-Mail Removed)...
> > > In my table I have a field for quantity. I have the fieldsize set to
> > > double
> > > and the decimal places set to 2. However it always rounds to a whole
> > > number.
> > > For example when I put in 1.25 it rounds to 1....how can I make it display
> > > the decimal points?
> > >
> > >

> >
> >
> >

 
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
Re: How to format without decimal point unless significant digits? joeu2004 Microsoft Excel Discussion 1 14th Jul 2011 04:12 AM
Digits to the right of decimal point Tigerxxx Microsoft Excel Misc 3 21st Oct 2008 09:56 PM
Converting 2-place decimal value to floating point decimal number with leading zero Kermit Piper Microsoft Excel Misc 3 18th Mar 2006 06:20 PM
Displaying only digits after the decimal point =?Utf-8?B?VGF0?= Microsoft Excel Worksheet Functions 4 1st Jun 2005 06:13 PM
zeros after decimal point is not displaying in datagrid =?Utf-8?B?VGVjaHN0dWRlbnQ=?= Microsoft Dot NET Framework Forms 0 6th Dec 2004 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:22 AM.