Re: Access-0.25 shows as zero in table-I want 0.25

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Sat, 7 Oct 2006 08:55:02 -0700, B A Sullivan <B A
Sullivan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

How do I get my number fields to display values that are less than 1 as the
actual value; e.g., 0.25?

By default, a Number field is defined as a Long Integer. Integers are,
by definition, whole numbers, and cannot accept fractional values such
as 0.25 or 1.25.

Either change the properties of the field - in the lower left corner
of the table design screen when you select the field - from Long
Integer to Float or Double; or change the datatype of the field itself
from Number to Currency. Float and Double are accurate to about 7 or
14 decimal places' accuracy, but both have problems with "roundoff
error"; Currency handles exactly four, no more and no fewer, decimal
places with no roundoff problems.

Depending on your version of Access, you may also have a Decimal size
property. Be aware that this has some bugs: see

http://support.microsoft.com/kb/837148/en-us

John W. Vinson[MVP]
.



Relevant Pages

  • Re: OT: HP and US dollar
    ... > The Chinese peg the yaun to the dollar. ... The US gov't is urging China to float their currency but China probably ...
    (comp.os.vms)
  • Re: The Brilliance of Moving US Manufacturing Jobs to China
    ... All them stocks have a 'free float', ... A currency that floats does not have a band it can float in, ... Chinese people deserve to be ... We have a minimum wage, ...
    (misc.writing)
  • Re: The Brilliance of Moving US Manufacturing Jobs to China
    ... >>> With no regard for personal safety or the comfort of others, ... All them stocks have a 'free float', ... >>> This is not floating your currency in the sense Josh is meaning. ...
    (misc.writing)
  • Re: Currency and Number data type
    ... You refer to Float data type - this has confused me ... Float - is it the same as the Decimal option when looking ... >>better to use Currency data type and format it as say ... >It depends on the calculation. ...
    (microsoft.public.access.queries)