简体   繁体   中英

How to extend the size of the numbers in long long int for example?

Hi how can i count bigger numbers becouse with this code it cant even count 10^10 it just says 1e+010. pls help

#include<iostream>
#include<math.h>
using namespace std;

int main(){
long double a;
long double b;
cin>>a;
cin>>b;
cout<<pow(a,b);
return 0;
}

There are multiple big number libraries you can use (I don't know of a "standard one"). One I've used in the past is infint

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM