:

how to do squareroot?

Added by: ~timlyg, 2015 III 04

Added by: ~timlyg, 2015 III 04

I have:
#include <cmath>
#include <ttmath/ttmath.h>
...
ttmath::UInt<100> n;
.
.
.
.
n = sqrt(n);
doesn't work. It says something like cannot covert to double sqrt().

Help.
Thanks.

Added by: tomek, 2015 III 05

n = 81;
n.Sqrt();
std::cout << n << std::endl;

Added by: ~timlyg, 2015 III 05

Thanks! That works!