std::ostream& operator<< (std::ostream& os, const number< N, E >& n)
{
// FIXME sacar una salida bonita en ASCII =)
- for (typename number< N, E >::const_iterator i = n.chunk.begin();
- i != n.chunk.end(); ++i)
+ if (n.sign == positive)
+ os << "+ ";
+ else
+ os << "- ";
+ for (typename number< N, E >::const_reverse_iterator i = n.chunk.rbegin();
+ i != n.chunk.rend(); ++i)
os << std::setfill('0') << std::setw(sizeof(N) * 2) << std::hex
<< *i << " ";
return os;