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.

26 lines
551 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Common
{
/// <summary>
/// long数据拓展
/// </summary>
public static class DoubleExtension
{
/// <summary>
/// 返回指定位数的数值
/// </summary>
/// <param name="Value"></param>
/// <param name="decimals"></param>
/// <returns></returns>
public static double Round(this double Value,int decimals=2)
{
return Math.Round(Value, decimals);
}
}
}