Integers number

Discussion in 'AutoCAD' started by Adesu, Jan 23, 2004.

  1. Adesu

    Adesu Guest

    " Integers - Is a number ranging between -32768 and +32767 without decimal
    points eg: 1" from site : AFRALISP.COM
    Can anyone's help to me to explain that number more detail information,where
    it found,and why only that
    Thanks you for your helps.
    Best regards
    Ade Suharna
     
    Adesu, Jan 23, 2004
    #1
  2. Hi Ade,

    An integer is stored in 2 bytes.
    Each byte holds 8 bits which can have values of one or zero. Hence you get
    2^16 possible numbers which is about 65,536 or
    32768 for the negatives + 32767 for the positives + 1 for zero.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Jan 23, 2004
    #2
  3. Adesu

    Tom Berger Guest

    AutoLISP uses 16 bit to store an integer. This makes 65536 different
    states, and these states can be interpreted as the integer numbers
    from -32768 to +32767 including zero.

    Tom Berger
     
    Tom Berger, Jan 23, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.