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:
parent
6d8cc90e96
commit
126b86b2e5
|
@ -476,12 +476,12 @@ public class C_ExpressionParser {
|
||||||
ex = new TDInteger(vInteger);
|
ex = new TDInteger(vInteger);
|
||||||
break;
|
break;
|
||||||
case Numeric:
|
case Numeric:
|
||||||
Float vNumeric;
|
Double vNumeric;
|
||||||
try {
|
try {
|
||||||
vNumeric = Float.valueOf(value.getValue());
|
vNumeric = Double.valueOf(value.getValue());
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
throw new ExpressionParserException(value.getValue()
|
throw new ExpressionParserException(value.getValue()
|
||||||
+ " is not valid Float type");
|
+ " is not valid Double type");
|
||||||
}
|
}
|
||||||
ex = new TDNumeric(vNumeric);
|
ex = new TDNumeric(vNumeric);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -670,7 +670,7 @@ public class ConditionTypeMap {
|
||||||
"Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
"Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Float.parseFloat(arg);
|
Double.parseDouble(arg);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
throw new ConditionTypeMapException(arg
|
throw new ConditionTypeMapException(arg
|
||||||
+ " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
+ " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
||||||
|
|
|
@ -702,7 +702,7 @@ public class ReplaceTypeMap {
|
||||||
"Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
"Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Float.parseFloat(arg);
|
Double.parseDouble(arg);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
throw new ReplaceTypeMapException(arg
|
throw new ReplaceTypeMapException(arg
|
||||||
+ " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
+ " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");
|
||||||
|
|
Loading…
Reference in New Issue