From 28b14db09a3820c084a3a1d7144fd92854e34ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Walter?= Date: Wed, 6 Nov 2013 20:04:22 +0000 Subject: [PATCH] Bug 55742: fixed hex2dec tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1539447 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/formula/functions/BaseNumberUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java b/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java index ceb7b654d..41ec97e0f 100644 --- a/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java +++ b/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java @@ -25,7 +25,7 @@ public class BaseNumberUtils { public static double convertToDecimal(String value, int base, int maxNumberOfPlaces) throws IllegalArgumentException { - if (value != null && value.length() != 0) { + if (value != null && value.length() == 0) { return 0.0; }