Without using big int classes in C++, what's a good way to handle arithmetic on large numbers?
For instance, writing a Vector class that deals with dot products and cross products using large doubles can result in non-finite values. Do I leave this up to the user to handle NaN's/(-inf to inf), etc.? Or do I somehow handle those cases using std::isfinite within the Vector class (potentially modifying values within the class instance)? I feel kind of weird manipulating of a user created object if one or more of the resultant vector components is non-finite.
Input is appreciated.