diff --git a/main/src/com/google/refine/commands/cell/EditOneCellCommand.java b/main/src/com/google/refine/commands/cell/EditOneCellCommand.java index 55cf39252..62662d2dc 100644 --- a/main/src/com/google/refine/commands/cell/EditOneCellCommand.java +++ b/main/src/com/google/refine/commands/cell/EditOneCellCommand.java @@ -103,7 +103,11 @@ public class EditOneCellCommand extends Command { Serializable value = null; if ("number".equals(type)) { - value = Double.parseDouble(valueString); + 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)) {