Datatype intAn integer is a number of the set Z = {..., -2, -1, 0, 1, 2, ...}. SyntaxIntegers can be specified only in decimal (10-based) notation, optionally preceded by a sign (- or +). You may use scientific notation. Example: Integer literalsd = 1234; // decimal number d = -123; // a negative number d = 1.3E+6; // 1 300 000 The size of an integer is 32 bit. Internally the compiler takes care about integers only when loading and storing them from/to memory. Converting to/from integersIntegers are converted automatically to other datatypes if necessary and allowed. Because they are just truncated real values they seem to behave very similar to the real datatype. Converting to:
Converting from:
|