:

Erorr Pow function

Added by: ~longit, 2013 II 04

Added by: ~longit, 2013 II 04

Big<64,42> a = "64";
std::cout << a.Pow(2) << std::endl;

I get 0 as result

Added by: ~t, 2013 II 04

Big::Pow(Big &) returns:
0 - ok
1 - carry
2 - incorrect arguments

so change your example to:

Big<1, 10> a = "64";
a.Pow(2);
std::cout << a << std::endl;