Results 1 to 5 of 5

Thread: Integer Vs LongInt

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default Integer Vs LongInt

    Length(s):LongInt;

    Stats_IncVariable(VarName:String; Value:Integer);

    Will
    Stats_IncVariable('Coal Ore (Mined)', Length(HowMany) );
    Work?

    (HowMany:TPointArray);

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Should work just fine. You can do var I : Integer; I := Length(HowMany); right?

    Just remember to reset HowMany after each commit

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Should work just fine. You can do var I : Integer; I := Length(HowMany); right?

    Just remember to reset HowMany after each commit
    HokiePokie.
    I find HowMany like this so no need for reset but thanks
    Simba Code:
    FindDTMs(OreMid, HowMany, MIX1, MIY1, MIX2, MIY2);
    Problem earlier was DTM not being found, fixed that now, let's see if it commits!

  4. #4
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Code:
                     Type  Bytes  Bits                Range
    
                short int    2      16          -32,768 -> +32,767          (16kb)
       unsigned short int    2      16                0 -> +65,535          (32Kb)
             unsigned int    4      16                0 -> +4,294,967,295   ( 4Gb)
                      int    4      32   -2,147,483,648 -> +2,147,483,647   ( 2Gb)
                 long int    4      32   -2,147,483,648 -> +2,147,483,647   ( 2Gb)
              signed char    1       8             -128 -> +127
            unsigned char    1       8                0 -> +255
                    float    4      32
                   double    8      64
              long double   12      96
    Source.

  5. #5
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Internally...

    Simba Code:
    type
      Integer = LongInt;

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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