Comparison functions

Comparison functions support extended exception handling and exponent comparisons.