Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# decimal built-in methods

using System;

decimal x = 12m;
decimal y = 5m;
decimal z = 12.89m;

Console.WriteLine(decimal.Remainder(x, y));
Console.WriteLine(decimal.Add(x, y));
Console.WriteLine(decimal.Subtract(x, y));
Console.WriteLine(decimal.Round(z, 1));
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #decimal #methods
ADD COMMENT
Topic
Name
1+3 =