Created
August 12, 2017 21:35
-
-
Save geoffreymcgill/e9dc40194a7defcd324071ad802f3fd4 to your computer and use it in GitHub Desktop.
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
decimal d = 1.0M; | |
// Test decimal. | |
if (d == 1.0M) | |
{ | |
Console.WriteLine(d); | |
} | |
decimal y = 0.5M; | |
// Add decimal. | |
y += d; | |
Console.WriteLine(y); | |
// Subtract and multiply decimal. | |
y -= (d * 2); | |
Console.WriteLine(y); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment