It'd be nice if the library could tell us the extrema for a given data type.
e.g. tell me the maximum representable value, the minimum positive value, the negative value with the highest magnitude

Added by: tomek, 2010 V 31

there are methods: SetMax() and SetMin()

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

int main()
{
ttmath::Big<2, 5> a, b;
ttmath::Int<8> c, d;

a.SetMax();
b.SetMin();
c.SetMax();
d.SetMin();

std::cout << a << std::endl;
std::cout << b << std::endl;
std::cout << c << std::endl;
std::cout << d << std::endl;
}