首页 » Posts tagged '任意精度'
Tag: 任意精度
最简单的任意精度Pi程序
lesca | Math | 2011-10-05
一、公式
二、代码
[cpp]
#include <iostream>
#include <stdlib.h>
#define TAIL 10
using namespace std;
void output(int *num, int len) {
cout << num[0] << ‘.’ << endl;
for (int i = 1; i < len; i++) {
cout << num[i];
if (!(i % 50)) cout << " :... [阅读全文]
近期评论 Recent Comments