Results 1 to 2 of 2
  1. #1
    HumanJHawkins is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2020
    Posts
    1

    Question How to Handle Very Large Numbers?

    A student using MS Access 2016 made a table of celestial bodies that included their mass in Kg. The sun for example is 1.989E+30Kg (or 1989000000000000000000000000000Kg in standard notation). She used a datatype of Short Text.

    I would like to help this student convert that to a number so she can (for example) select out the largest 10% of celestial bodies by mass. The new Large Number data type appears to hold only a max value of 2^63 (9.223372e+18 or 9223372000000000000 in standard notation)


    .

    Does Access have anything equivalent to the SQL

    Code:
    DECLARE @solarMass DECIMAL(35,0) = 1989000000000000000000000000000;

    If not, what do you do when needing to handle large numbers in Access?

    Thanks.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    access has the decimal datatype, but to a precision of 28, not 35. There is also a reported issue with sorting -see this link https://www.fmsinc.com/microsoftacce...type/index.htm which may impact determining the top 10%

    for myself, large numbers have not been a real issue. Where they have been, I've just stored them as text, taking care to ensure there were preceding zeros to maintain the order

    1989000000000000000000000000000
    0234500000000000000000000000000

    the other option perhaps, if most of those zeros are not used is to cut the number down a bit

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How large is large in Access?
    By Marcia in forum Access
    Replies: 6
    Last Post: 09-05-2019, 02:47 AM
  2. Replies: 5
    Last Post: 03-01-2016, 01:01 PM
  3. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  4. Math operations with large numbers
    By BRZ-Ryan in forum Macros
    Replies: 3
    Last Post: 02-14-2014, 04:20 PM
  5. Replies: 1
    Last Post: 11-29-2011, 08:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums