Whole document tree
    

Whole document tree

Untitled Document: Integers
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.1 Integers

An octal integer is `0' followed by zero or more of the octal digits (`01234567').
 
_as_octal = 0157255;

A decimal integer starts with a non-zero digit followed by zero or more digits (`0123456789').
 
_as_decimal = 57005;

A hexadecimal integer is `0x' or `0X' followed by one or more hexadecimal digits chosen from `0123456789abcdefABCDEF'.
 
_as_hex = 0xdead;

To write a negative integer, use the prefix operator `-' (see section 3.2.4 Operators).
 
_as_neg = -57005;

Additionally the suffixes K and M may be used to scale a constant by 1024 or 1024*1024 respectively. For example, the following all refer to the same quantity:

 
        _fourk_1 = 4K;
        _fourk_2 = 4096;
        _fourk_3 = 0x1000;



This document was generated by root on January, 30 2002 using texi2html