diff --git a/controllers/controller.number.js b/controllers/controller.number.js index ab20ef5..36b72ce 100644 --- a/controllers/controller.number.js +++ b/controllers/controller.number.js @@ -67,7 +67,7 @@ GUI.NumberController = function() { var newVal; switch(e.keyCode) { case 13: - newVal = this.getValue(); + newVal = parseFloat(this.value); _this.setValue(newVal); break; case 38: // up