public static float Sign2(float Left, float Right) { float a = Left - Right; return (float)(((0.0 < a) ? 1 : 0) - ((a < 0.0) ? 1 : 0)); } }