class Convert {

    @NonNull
    public static String angle2(double degrees) {
        // Adjust range to -180..180
        degrees = (degrees + 540) % 360 - 180;
        if (degrees < 0)
            return ConvertUtil.formatInt(-degrees, 2) + " left";
        else if (degrees == 0)
            return "straight";
        else if (degrees > 0)
            return ConvertUtil.formatInt(degrees, 2) + " right";
        else
            return "";
    }

}