Created
July 24, 2013 23:55
-
-
Save Fhernd/6075711 to your computer and use it in GitHub Desktop.
Demostración de operaciones que producen valores infinitos positivos y negativos en código fuente C#.
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
class DivisionPorCeroValoresInfinitos | |
{ | |
static void Main() | |
{ | |
Console.WriteLine(1.0 / 0.0); // Infinity | |
Console.WriteLine(-1.0 / 0.0); // -Infinity | |
Console.WriteLine(1.0 / -0.0); // -Infinity | |
Console.WriteLine(-1.0 / -0.0); // Infinity | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment