📜  C# 十进制内置方法 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.543000             🧑  作者: Mango

代码示例1
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));