实现一个类来代表不限制精度的小数

时间:2012-01-24 11:35:45
【文件属性】:

文件名称:实现一个类来代表不限制精度的小数

文件大小:243KB

文件格式:RAR

更新时间:2012-01-24 11:35:45

不限制精度,小数,相加,相乘

实现一个类来代表不限制精度的小数。这个类使用一个字符串来构造,它的对象之间应该具有加和乘操作的能力。 比如 MyNumber num1 = "1.23456781111111111111111111111111"; MyNumber num2 = "222"; MyNumber num3 = num1 * num2 + num1; Console.WriteLine(MyNumber); 然后为这个类实现一些单元测试。


【文件预览】:
Exercise Training
----LocalTestRun.testrunconfig(335B)
----Exercise Training.suo(24KB)
----MyNumberTest()
--------bin()
--------obj()
--------Properties()
--------MyNumberTest.csproj(3KB)
--------AuthoringTests.txt(7KB)
--------MyNumberTest.cs(4KB)
----Exercise Training.sln(2KB)
----TestResults()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_28_13.trx(9KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_43_09.trx(7KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_29_46.trx(7KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_48_56.trx(7KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_22_10()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_12_52.trx(10KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_16_21()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_14_24.trx(10KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_29_35.trx(7KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_16_21.trx(10KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_27_53()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_48_02.trx(7KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_48_56()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_26_03.trx(10KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_23_00.trx(10KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_43_09()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_43_04.trx(7KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_14_24()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_12_52()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_22_10.trx(10KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_23_00()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_26_03()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_29_46()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_43_04()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_48_02()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_27_53.trx(9KB)
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_29_35()
--------i-huijux_WS-I-HUIJUX-01 2009-01-01 12_28_13()
----Exercise Training()
--------bin()
--------Exercise Training.csproj(2KB)
--------obj()
--------Properties()
--------Exercise Training.cs(9KB)
----Exercise Training.vsmdi(499B)

网友评论