- ParanoidNumber * copy = new ParanoidNumber(*this);
- copy->m_value = 1;
- copy->Simplify(MULTIPLY);
- copy->Simplify(DIVIDE);
- return copy;
+ if (!SanityCheck())
+ Fatal("This is insane!");
+ if (fabs(Digit() - compare) > eps)
+ {
+ Error("Called via %s(%lf) (%s:%d)", func, arg, file, line);
+ Error("Failed: %s", Str().c_str());
+ Fatal("This: %.30lf vs Expected: %.30lf", Digit(), compare);
+ }