Please enable JavaScript to view this site.

Constants value inside a X/script source can be of the following types:

Integer constant;

Hexadecimal constant;

Real constant:

Character constant;

String constant.

Integer constant

Integer constants are considered all numbers composed only by digit in range 0-9, optionally prefixed with + or - symbol. Integer numbers are 32bit, so the validity range is from –2.147.483.648 to +2.147.483.648

Hexadecimal constant

Hexadecimal constants are considered all number prefixed with 0x and followed by digit in range 0-9 and A-F. Since they are unsigned and 32bit, the validity range is from 0 to 0xFFFFFFFF ((+4.294.967.296)).

Real constant

Real constant are considered all numbers composed only by digit in range 0-9 and/or symbols . and E, optionally prefixed with + or - symbol. Real numbers are 64bit so the validity range is from –1.8E308 to +1.8E308; the smallest representable value is 4.19E-307.

Character constant

Character constant are composed only by one character between a couple of symbols '. Some special characters (for escape sequences) are:

‘\t’  tabulator;

‘\r’ carriage return

‘\n’ line feed

‘\b’ backspace

‘\xnn’  hexadecimal value nn

String constant

String constant are an arbitrary sequence of character between a couple of symbols ".

NOTE: strings constants are not divisible along different source lines.

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC