?? class1.cs
字號:
using System;
namespace ConvertServer
{
/// <summary>
/// Class1 的摘要說明。
/// </summary>
public class Class1
{
public Class1()
{
//
// TODO: 在此處添加構造函數邏輯
//
}
public string GetChinese(double DataInput,bool DisplayZero)
{
string[] strScale = {"分","角","元","拾","佰","仟","萬","拾","佰","仟","億","拾","佰","仟","兆","拾","佰","仟"};
string[] strNumber = {"零","壹","貳","叁","肆","伍","陸","柒","捌","玖"};
string temp = DataInput.ToString();
string strTemp = temp.Replace(".","");
string strResult = "";
for (int i = strTemp.Length;i > 0;i--)
{
strResult += strNumber[Convert.ToInt16(strTemp[strTemp.Length-i].ToString())];
strResult += strScale[i-1];
}
return strResult;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -