public static float sign(float fValue) {
        return Math.signum(fValue);
    }
Returns 1 if the number is positive, -1 if the number is negative, and 0 otherwise

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