Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    St. Charles, Illinois
    Posts
    222
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calculating out to 10 decimal places (Access 2000)

    I have two numeric fields, each formated for 2 decimal places. I need to divide one field by the other and show the answer with 10 decimal places. The result is actually calculating at 4 decimal places, but showing 10 decimals. Any idea on how to truly calculate with 10 decimal places. Example: Audited Premium divided by the sum of all audited premiums equals member portion. Member portion needs to be in 10 decimal places. Thank you.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calculating out to 10 decimal places (Access 2000)

    Is Audited Premium a Currency field? Currency fields are stored with 4 decimal places internally, and calculations involving currency fields will probably also use 4 decimal places. See if converting to Double in the calculation helps:

    Member Portion: CDbl([Audited Premium])/CDbl([SumOfAuditedPremium])

  3. #3
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calculating out to 10 decimal places (Access 2000)

    You would need to use Double numeric types, however, floating point calculations are not entirely 100% accurate. If true accuracy is required you may need to roll your own function to produce the correct results, returning them as a 'string'.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •