src/main/java/seedu/address/model/modelObjectTags/Amount.java
public static boolean isValidRange(String test) {
        float amount = 0;
        if (test.substring(0, 1).equals("-")) {
            amount = Float.parseFloat(test.replaceFirst("-", ""));
        } else {
            amount = Float.parseFloat(test);
        }
        return !(Math.abs(amount) > VALIDATION_RANGE);
    }
/**
     * Returns true if a given value in string is in range.
     */
Returns true if a given value in string is in range.
Returns true if a given value in string is in range .
public static boolean isValidRange(String test) {
        float amount = 0;
        if (test.substring(0, 1).equals("-")) {
            amount = Float.parseFloat(test.replaceFirst("-", ""));
        } else {
            amount = Float.parseFloat(test);
        }
        return !(Math.abs(amount) > VALIDATION_RANGE);
    }
public static boolean isValidRange ( String test ) { float amount = 0 ; if ( test . substring ( 0 , 1 ) . equals ( "-" ) ) { amount = Float . parseFloat ( test . replaceFirst ( "-" , "" ) ) ; } else { amount = Float . parseFloat ( test ) ; } return ! ( Math . abs ( amount ) > VALIDATION_RANGE ) ; }
Returns true if a given value in string is in range.
Returns true if a given value in string is in range .