* calc/calc-units.el (math-midi-round): Translate calc-note-threshold
to an appropriate fraction.
This commit is contained in:
parent
05a29101b2
commit
8f60c82016
1 changed files with 2 additions and 1 deletions
|
@ -1869,7 +1869,8 @@ In symbolic mode, return the list (^ a b)."
|
|||
(let* ((n (math-round num))
|
||||
(diff (math-abs
|
||||
(math-sub num n))))
|
||||
(if (< (math-compare diff (math-read-expr calc-note-threshold)) 0)
|
||||
(if (< (math-compare diff
|
||||
(math-div (math-read-expr calc-note-threshold) 100)) 0)
|
||||
n
|
||||
num)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue