public Number getFloatingPoint() { // The parser should ensure the format of the string to be parsed. if (this.number == null) { try { Double d = Double.valueOf(this.image); if (d.isInfinite() || d.isNaN()) { this.number = new BigDecimal(this.image);
} else { this.number = d;
}
} catch (NumberFormatException e) { // Catch NumberFormatException here just in case the parser // provides invalid input. thrownew ELException(e);
}
} returnthis.number;
}
@Override public Object getValue(EvaluationContext ctx) throws ELException { returnthis.getFloatingPoint();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.