Created
February 27, 2012 09:41
-
-
Save Baezu/1922826 to your computer and use it in GitHub Desktop.
Numeric Suffixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Program{ static void Main() | |
| { | |
| // Use long suffix. | |
| long l1 = 10000L; | |
| // Use double suffix. | |
| double d1 = 123.764D; | |
| // Use float suffix. | |
| float f1 = 100.50F; | |
| // Use unsigned suffix. | |
| uint u1 = 1000U; | |
| // Use decimal suffix. | |
| decimal m2 = 4000.1234M; | |
| // Use unsigned suffix and long suffix. | |
| ulong u2 = 10002000300040005000UL; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment