Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - int integer data type http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 int                 Integer data type
------------------------------------------------------------------------------
 Syntax
   int

 Arguments
   None.

 Features
   +----------------------------------------------------------------------+
   | Category             | numeric (integral)                            |
   | Size                 | 2 bytes                                       |
   | Range                | -32768 to 32767                               |
   | Parameter: value     | yes                                           |
   | Parameter: reference | yes                                           |
   | Parameter: const     | yes                                           |
   | Return               | yes                                           |
   +----------------------------------------------------------------------+

 Description
   The int datatype may hold any integer in the set -32768, -32767,
   ..., -2, -1, 0, 1, 2, ..., 32767.

 Example
   #define EXAMPLE_DATATYPE
   #include example.hdr

   vardef
      int aNums[ 6 ] := -32769, -32768, -32767, 0, 32767, 32768
      int i
   enddef
   
   proc Test_int
   for i := -3 to 2
      ? aNums[ i + 3 ]
   next
   endproc

   proc main
   Test_int()
   endproc

See Also: uint

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson