close

//對小數點處理
 public string pointstyle(string num, int point)
    {
        string pointNum = num;
        if (num == "")
        {


        }
        else
        {
            if (point == 0)
            {
                pointNum = num.Substring(0, num.IndexOf(".") + point);
            }
            else
            {
                pointNum = num.Substring(0, num.IndexOf(".") + (point + 1));
            }
        }
        return pointNum;
    }

arrow
arrow
    文章標籤
    C#、ASP.NET、itextsharp
    全站熱搜
    創作者介紹
    創作者 鴨鴨仔 的頭像
    鴨鴨仔

    DUCK,Fearless!

    鴨鴨仔 發表在 痞客邦 留言(0) 人氣()