What is the shortest Excel worksheet formula to compare two numbers and determine whether one is greater than, less than, or equal two the other number?

I know how to do a simple comparison with the <,>,=, etc. operators and I know I can nest IF statements, but I've been trying to figure out if there is a shorter way, such as FUNCTION(X,Y) ==> 1 if <, 2 if >, 3 if =

Any ideas?