Fixed rounding error when editing bookmarks.

This commit is contained in:
Marat Fayzullin 2024-07-05 18:54:35 -04:00
parent e4c13f6343
commit 0aa215fd03
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ FrequencyEditor.prototype.setupEvents = function() {
FrequencyEditor.prototype.getValue = function() { FrequencyEditor.prototype.getValue = function() {
var frequency = parseFloat(this.freqInput.val()); var frequency = parseFloat(this.freqInput.val());
var exp = parseInt(this.expInput.val()); var exp = parseInt(this.expInput.val());
return Math.floor(frequency * 10 ** exp); return Math.round(frequency * 10 ** exp);
}; };
FrequencyEditor.prototype.setValue = function(value) { FrequencyEditor.prototype.setValue = function(value) {