You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/01/25 18:47:35 UTC
svn commit: r1897467 - /poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java
Author: fanningpj
Date: Tue Jan 25 18:47:35 2022
New Revision: 1897467
URL: http://svn.apache.org/viewvc?rev=1897467&view=rev
Log:
[bug-65846] support numbervalue function
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java
Modified: poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java?rev=1897467&r1=1897466&r2=1897467&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java (original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java Tue Jan 25 18:47:35 2022
@@ -71,7 +71,6 @@ public final class NumberValueFunction i
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 i
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.
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org