using System;
namespace IStation.Untity
{
public class NumberHelper
{
///
///
///
public static double? Round(double? v, int num)
{
if (v == null)
return null;
return Math.Round(v.Value, num);
}
///
///
///
public static string RoundString(double? v, int num)
{
if (v == null)
return string.Empty;
return Math.Round(v.Value, num).ToString();
}
}
}