aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-01-25 18:47:35 +0000
committerPJ Fanning <fanningpj@apache.org>2022-01-25 18:47:35 +0000
commit4fec22f6a915dcb9afab4bcb54f23eea9291559f (patch)
treeadc92261df272fa2e8f39402040dd43155b465ce /poi
parente6039d0deb1be3868129afceb7c8f62c17d7b8a3 (diff)
downloadpoi-4fec22f6a915dcb9afab4bcb54f23eea9291559f.tar.gz
poi-4fec22f6a915dcb9afab4bcb54f23eea9291559f.zip
[bug-65846] support numbervalue function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897467 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java
index 76a2036897..8dd8855ed7 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java
@@ -71,7 +71,6 @@ public final class NumberValueFunction implements FreeRefFunction {
groupSep = OperandResolver.coerceValueToString(v3).substring(0, 1); //If multiple characters are used in the Decimal_separator or Group_separator arguments, only the first character is used.
}
} catch (EvaluationException e) {
- e.printStackTrace() ;
return e.getErrorEval();
}
@@ -107,9 +106,8 @@ public final class NumberValueFunction implements FreeRefFunction {
result = result / Math.pow(100, countPercent); //If the Text argument ends in one or more percent signs (%), they are used in the calculation of the result.
checkValue(result);
} catch (EvaluationException e) {
- e.printStackTrace() ;
return e.getErrorEval();
- } catch (Exception anyex) {
+ } catch (Exception e) {
return ErrorEval.VALUE_INVALID; //If any of the arguments are not valid, NUMBERVALUE returns the #VALUE! error value.
}