Comparison operators, as their name implies, allow you to compare two values.
When comparing expressions with different datatypes, remember that both expressions will be type-casted so they can be compared. For example if you compare a real and a complex number, then the real number will be type casted to a complex number having an imaginary part of 0. After that they will be compared. Such type casting can slow down calculations.