literals
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
literals [2018/02/10 14:51] – wolfgangriedmann | literals [2018/02/12 07:07] – wolfgangriedmann | ||
---|---|---|---|
Line 20: | Line 20: | ||
If you need to specify what type a numeric literal should take, use suffixes: | If you need to specify what type a numeric literal should take, use suffixes: | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
You can also use a prefix of '' | You can also use a prefix of '' | ||
Sample code: | Sample code: | ||
- | < | + | < |
- | Console.WriteLine( " | + | Console.WriteLine( " |
- | Console.WriteLine( " | + | Console.WriteLine( " |
- | Console.WriteLine( " | + | Console.WriteLine( " |
- | Console.WriteLine( " | + | Console.WriteLine( " |
- | Console.WriteLine( " | + | Console.WriteLine( " |
- | Console.WriteLine( " | + | Console.WriteLine( " |
- | Console.WriteLine( " | + | Console.WriteLine( " |
For explanations why these suffixes differ from these on C#, please see this X# forum post: [[https:// | For explanations why these suffixes differ from these on C#, please see this X# forum post: [[https:// | ||
literals.txt · Last modified: 2018/08/20 04:05 by wolfgangriedmann