Clearing up Literal Values
Posted by Gizmosis350k
Last Updated: April 18, 2012
Literal Values

The other variable types also have associated literal values, as shown in the following table. Many of these involve suffixes,
whereby you add a sequence of characters to the end of the literal value to specify the type desired. Some
literals have multiple types, determined at compile time by the compiler based on their context (also
shown in the following table).
TYPE(S) CATEGORY SUFFIX EXAMPLE/ALLOWED VALUES
bool Boolean None                           true or false
int, uint, long, ulong Integer None         100
uint, ulong Integer u or U                        100U
long, ulong Integer l or L                        100L
ulong Integer ul, uL, Ul, UL,lu, lU,Lu, or LU   100UL
float Real f or F                                             1.5F
double Real None, d, or                           D 1.5
decimal Real m or M                                  1.5M
char Character None                               ’a’, or escape sequence
string String None                                     "a . . . a", may include escape sequences


Was doing some revising and came up on this table, and weirdly enough i don't exactly get what it's trying to portray.
Anyone care to explain?
Related Content