なぜこの印刷は1ですか??? それは私を狂わせます。1.01005016708を印刷する必要があります
Bloodshed dev c++ を使用してコンパイルしています
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{
double rate = .05;
double time = (1/5);
double p = exp(rate*time);
cout<<p<<endl;
system("PAUSE");
return 0;
}