Results 1 to 2 of 2
  1. #1
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93

    Result of double and integer multiplication


    Hello everyone,

    If you but an expression in a query that performs multiplication between a field of type double and the result of another expression that is possibly of type integer, would you get the answer of type double or of type integer and how can you verify what type of data is the answer is stored in ?

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    If done in a select query or function, the result will be a double.

    However, if you are using an update query to calculate the result in a table field, the result will be in whatever datatype is used for that field.
    If the field is an integer, the result will be rounded.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 2
    Last Post: 02-13-2013, 04:14 PM
  2. Similar to a Multiplication Table
    By kraddark in forum Programming
    Replies: 4
    Last Post: 05-25-2012, 11:27 AM
  3. Multiplication of txt box to table field
    By veereshrk in forum Programming
    Replies: 3
    Last Post: 10-01-2011, 05:57 AM
  4. Adding column as INTEGER makes it a long integer?
    By luckycharms in forum Programming
    Replies: 2
    Last Post: 10-20-2010, 02:47 PM
  5. simple multiplication question
    By aaronmarsh632 in forum Access
    Replies: 1
    Last Post: 10-08-2009, 04:51 AM

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