Updated Numeric to Double

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@111864 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-02-10 16:51:28 +00:00
parent 6d8cc90e96
commit 126b86b2e5
3 changed files with 5 additions and 5 deletions

View File

@ -476,12 +476,12 @@ public class C_ExpressionParser {
ex = new TDInteger(vInteger);
break;
case Numeric:
Float vNumeric;
Double vNumeric;
try {
vNumeric = Float.valueOf(value.getValue());
vNumeric = Double.valueOf(value.getValue());
} catch (NumberFormatException e) {
throw new ExpressionParserException(value.getValue()
+ " is not valid Float type");
+ " is not valid Double type");
}
ex = new TDNumeric(vNumeric);
break;

View File

@ -670,7 +670,7 @@ public class ConditionTypeMap {
"Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!");
}
try {
Float.parseFloat(arg);
Double.parseDouble(arg);
} catch (NumberFormatException e) {
throw new ConditionTypeMapException(arg
+ " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");

View File

@ -702,7 +702,7 @@ public class ReplaceTypeMap {
"Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!");
}
try {
Float.parseFloat(arg);
Double.parseDouble(arg);
} catch (NumberFormatException e) {
throw new ReplaceTypeMapException(arg
+ " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");