public Double getValueAsDouble() {
        final Value value = getValue();
        return value == null || !value.isDouble() ? null : value.getAsDouble();
    }
Allows live-editing of a formula, optionally associated with a Variable List
main/src/main/java/cgeo/geocaching/ui/FormulaEditText.java