public static int sign(int iValue) {
        if (iValue > 0) {
            return 1;
        }
        if (iValue < 0) {
            return -1;
        }
        return 0;
    }
Returns 1 if the number is positive, -1 if the number is negative, and 0 otherwise

@param iValue The integer to examine.
@return The integer's sign.
jme3-core/src/main/java/com/jme3/math/FastMath.java