Skip to content

Instantly share code, notes, and snippets.

@pachecoder
Last active December 24, 2015 16:28
Show Gist options
  • Save pachecoder/6827905 to your computer and use it in GitHub Desktop.
Save pachecoder/6827905 to your computer and use it in GitHub Desktop.
Valida que el decimal sea entero con la finalidad de realizar una validacion. Validate Decimal value is Int.
public static void Main (string[] args)
{
decimal d = 3.1M;
Console.WriteLine((d % 1) == 0);
d = 3.0M;
Console.WriteLine((d % 1) == 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment