Standardise 'edit' cell dialogue with 'toNumber()' behavior
@@ -103,7 +103,11 @@ public class EditOneCellCommand extends Command {
Serializable value = null;
if ("number".equals(type)) {
+ try {
+ value = Long.parseLong(valueString);
+ } catch (NumberFormatException e) {
value = Double.parseDouble(valueString);
+ }
} else if ("boolean".equals(type)) {
value = "true".equalsIgnoreCase(valueString);
} else if ("date".equals(type)) {
