public String fractionToDecimal(int numerator, int denominator) {
            boolean negative = (numerator < 0 && denominator > 0) || (numerator > 0 && denominator < 0);
            long num = Math.abs((long) numerator);
            long denom = Math.abs((long) denominator);
            long remainder = num / denom;
            long mod = num % denom;
            if (mod == 0) {
                if (negative) {
                    return "-" + remainder;
                } else {
                    return Long.toString(remainder);
                }
            } else {
                if (negative) {
                    return "-" + remainder + "." + fraction(mod, denom);
                } else {
                    return remainder + "." + fraction(mod, denom);
                }
            }

        }