public final class Value extends Fixed1ArgFunction
Syntax:
VALUE(text)
Converts the text argument to a number. Leading and/or trailing whitespace is
ignored. Currency symbols and thousands separators are stripped out.
Scientific notation is also supported. If the supplied text does not convert
properly the result is #VALUE! error. Blank string converts to zero.
| Constructor and Description |
|---|
Value() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Double |
convertTextToNumber(java.lang.String strText)
TODO see if the same functionality is needed in
OperandResolver.parseDouble(String) |
ValueEval |
evaluate(int srcRowIndex,
int srcColumnIndex,
ValueEval arg0)
|
static java.lang.Double |
parseDateTime(java.lang.String pText) |
evaluatepublic ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0)
Function1Argpublic static java.lang.Double convertTextToNumber(java.lang.String strText)
OperandResolver.parseDouble(String)null if there is any problem converting the textpublic static java.lang.Double parseDateTime(java.lang.String pText)
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.