cuthbertLab / music21j

Javascript port of music21 -- Toolkit for Computational Musicology
Other
142 stars 41 forks source link

`opFrac()` should round to zero #216

Closed vanderstel closed 1 year ago

vanderstel commented 1 year ago

In music21p (expected behavior):

>>> opFrac(0.000001)
0

In music21j:

> opFrac(0.000001)
0.000001
mscuthbert commented 1 year ago

eek!

jacobtylerwalls commented 1 year ago

I actually see this in m21p, opened cuthbertLab/music21#1544 as an enhancement:

>>> opFrac(0.000001)
Fraction(0, 1)