Michael Reitzenstein #1 Sgn is more useful as it returns -1 for a negative number, 0 for 0 and 1 for a positive number - it's not something you can do without a few ifs when inlining.