:

Can i convert to standart type ttmath::Factorial(256)?

Added by: ~PagRat, 2014 V 21

Added by: ~PagRat, 2014 V 21

I need to calculate the factorial of 256 and use it in further calculations or print eg in textBox1-> Text =

How can i do this?

Added by: tomek, 2014 V 21

#include <iostream>
#include "ttmath/ttmath.h"

int main()
{
std::string result;
ttmath::Big<1, 5> a, b;
a = 256;
b = ttmath::Factorial(a);
b.ToString(result);
std::cout << result << std::endl;
}

Added by: ~PagRat, 2014 V 21

it does not work, probably due to the fact that I work in C + + / CLI