Skip to content

Instantly share code, notes, and snippets.

@Baezu
Created February 27, 2012 09:41
Show Gist options
  • Select an option

  • Save Baezu/1922826 to your computer and use it in GitHub Desktop.

Select an option

Save Baezu/1922826 to your computer and use it in GitHub Desktop.
Numeric Suffixes
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