Comparison methods for 'int' or 'float' objects.
Extend the BaseComparator class to provide comparison methods specifically for numeric types (int and float). It includes methods to check equality, less than, less than or equal to, greater than, and greater than or equal to between two numeric values. The class ensures type consistency and raises appropriate errors for type mismatches.
Example
>>> tc = 4
>>> tc.equal(4, 2*2)
> True
>>> tc.get('ge')(8, 2*2*2)
> True