class Convert {

    @NonNull
    public static String angle(double degrees) {
        // Check for non numbers
        if (Double.isNaN(degrees) || Double.isInfinite(degrees)) return "";
        // Faster special case for integers
        final int degreesInt = (int) Math.floor(degrees);
        return degreesInt + "°";
    }

}