Comparison of data types without using comparisons [duplicate]

I suggest you subtract one number from another, then check the sign of the result i.e. is it positive, negative or zero, and based on this determine which was larger.

Leave a Comment