Fixed rounding error when editing bookmarks.
This commit is contained in:
parent
e4c13f6343
commit
0aa215fd03
|
|
@ -127,7 +127,7 @@ FrequencyEditor.prototype.setupEvents = function() {
|
|||
FrequencyEditor.prototype.getValue = function() {
|
||||
var frequency = parseFloat(this.freqInput.val());
|
||||
var exp = parseInt(this.expInput.val());
|
||||
return Math.floor(frequency * 10 ** exp);
|
||||
return Math.round(frequency * 10 ** exp);
|
||||
};
|
||||
|
||||
FrequencyEditor.prototype.setValue = function(value) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue