You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
536 B
C#
24 lines
536 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Study.DelegateSeries.Core.Calculator
|
|
{
|
|
/// <summary>
|
|
/// 除法类
|
|
/// </summary>
|
|
public class Division
|
|
{
|
|
/// <summary>
|
|
/// 求商
|
|
/// </summary>
|
|
/// <param name="dividend">被除数</param>
|
|
/// <param name="divisor">除数</param>
|
|
/// <returns>商</returns>
|
|
public decimal af(decimal dividend, decimal divisor)
|
|
{
|
|
return dividend / divisor;
|
|
}
|
|
}
|
|
}
|