Last active
December 24, 2015 16:28
-
-
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.
This file contains 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
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