- 博客(0)
- 资源 (3)
- 收藏
- 关注
利用java进行浮点型大数计算,支持四则运算和指数函数,三角函数,对数函数,双曲函数等运算,精度可调整
利用java进行浮点型大数计算,支持四则运算和指数函数,三角函数,对数函数,双曲函数等运算,精度可调整。例如:
MATH a=new MATH("1111.111111111111222222222222*33333333333);
MATH b=a.eval("Sin(Pi())*Power(2,5));
2018-09-22
自我更新模块
根据自定义文件进行程序更新
static void Main()
{
try
{
System.Net.WebClient download = new System.Net.WebClient();
download.BaseAddress = "ftp://ftp.ftp.com/System/";
download.DownloadFile("upgrade.list", "upgrade.list");
System.IO.StreamReader a = new System.IO.StreamReader("upgrade.list");
bool up = true;
string upfile = a.ReadLine();
while (up)
{
upfile = a.ReadLine();
if (upfile == null)
up = false;
else
{
if(upfile.LastIndexOf('\\')>-1)
System.IO.Directory.CreateDirectory(upfile.Substring(0, upfile.LastIndexOf('\\')));
download.DownloadFile(upfile, upfile);
}
}
download.Dispose();
MessageBox.Show("升级完毕");
}
catch (Exception ex)
{
MessageBox.Show("升级失败:" + ex.Message);
}
System.Diagnostics.Process tmpProcess = new System.Diagnostics.Process();
tmpProcess.StartInfo.FileName = Application.StartupPath + "\\myststem.exe";
tmpProcess.Start();
}
2011-10-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人