怎么表示小数点后长度为200的小数呀? 比如说我要输出355/113 不过我想要小数点后的200位都输出 显然double 和 long double 都不够用 不知道大家有什么好地idea呀? 谢谢
b*y
2 楼
You can try to find package dealing with arbitary floating point precision (possibly, GNU MP library, http://www.swox.com/gmp/). Don't know if they provide arbitary precision printing. In practice, there is barely any use of higher precision than IEEE double precision for numerical computing. The performance loss outweighes the tiny accuracy gain.
【在 b*****y 的大作中提到】 : You can try to find package dealing with arbitary : floating point precision (possibly, GNU MP library, : http://www.swox.com/gmp/). Don't know if they provide : arbitary precision printing. : In practice, there is barely any use of higher precision : than IEEE double precision for numerical computing. The : performance loss outweighes the tiny accuracy gain.
d*e
4 楼
of coz, you can try some software package. if you use linux, the developerworks on IBM's site can show your some hints. read the articles there.
【在 d******e 的大作中提到】 : of coz, you can try some software package. : if you use linux, the developerworks on IBM's site : can show your some hints. read the articles there.