Re: Formatting large numbers

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi Jeff

You have reached the limit of precision of the Double data type
(approximately 14-15 significant figures), so the result is being rounded.

Assuming these numbers are stored in a table, change the data type of the
field to Decimal, with a scale of 6 and a precision of at least 19 (more in
you want numbers greater that 10^13).
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand


"Jeff" <Jeff@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:602BAE5B-2635-457E-831D-8997CBFB90D4@xxxxxxxxxxxxxxxx
> Hello,
>
> I have a Text Box on a Form where the user can enter a ver large # (1
> Trillion and with 6 decimal places). But I am having trouble having it
> stay
> Formatted correctly when the user moves to another field. It keeps
> rounding
> to 2 decimal places.
>
> So for example if the user puts 1222333444555.123456 Access then makes it
> 1,222,333,444,555.120000.
> I want it to Format to 1,222,333,444,555.123456
>
> Or if
>
> I have set the Input Maske to 9999999999999.999999
> I have set the Deciaml Places Property to 6
> and I have played around with many different Formats, like:
> #,##0.000000
> #,##0
> #,###.######
>
> I even tried in the AfterUpdate Event using the CDEC function to convert
> it
> to Decimal but then leaves it in Scientific Notaion.
>
> Can someone please help me so that again it Formats to
> 1,222,333,444,555.123456 ?
>
> Also if I use a small er # like up to millions it works fine, I just run
> into this problem when I use very large #s.
>
> Any help would be greatly appreciated.
>
> Thank you,
> Jeff
>


.



Relevant Pages

  • Re: Between dates
    ... FromDOS and ToDOS are Date data type ... What type of strings? ... Some formats ... What Excel does with type conversion is magic and not ...
    (microsoft.public.access.modulesdaovba)
  • Re: 15 Significant Digits Limitation a Mistake for Spatial Information
    ... practical mistake for Microsoft to follow. ... computers always have used very specic formats ... us a favor by standardiszing the format. ... Decimal data type or roll your own extended precision data types. ...
    (microsoft.public.excel)
  • Re: Summing number wrong????
    ... > Do you think it may have to with the data type of the field SalesTax? ... >>> tried all number formats with no luck yet. ... >> Well currency has no problems due to imprecision, ... the sum of a column of those values is almost never going to agree with the sum ...
    (microsoft.public.access.formscoding)
  • Re: Internal representation of a TimeStamp
    ... I wish IBM would give us a choice of formats. ... representation of a timestamp on the AS/400 is not the only one. ... the Z data type is an aging version of the ISO standard. ...
    (comp.sys.ibm.as400.misc)
  • Re: Date comes out wrong in England
    ... Access MVP 2002-2005, 2007-2008 ...     International Date Formats in Access ... I think that the reports come out wrong by putting information in the ...
    (microsoft.public.access.reports)