I was trying to print the square root of a number at some given precision.
int N;
int precision;
cin>>N>>precision;
printf("%.*lf",precision,std::sqrt(N));
and this is what clang++ printed out:
%./a.out
2 100
1.4142135623730951454746218587388284504413604736328125000000000000000000000000000000000000000000000000
It was able to print over 50 digits of precision? I thought doubles could only handle 17 digits?
I'm running clang++ on apple silicon m1