We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02e9178 commit 99b4612Copy full SHA for 99b4612
1 file changed
tunits/core/cython/frac.pyx
@@ -87,7 +87,11 @@ cpdef frac float_to_twelths_frac(a) except *:
87
cdef long long x = <long long>c_floor(12*d + 0.5)
88
cdef double diff = 12*d - x
89
if max(diff, -diff) > 1e-5:
90
- print(f'%.20f'%diff)
+ print('spit')
91
+ print('%.20f'%a)
92
+ print('%.20f'%d)
93
+ print(x)
94
+ print('%.20f'%diff)
95
raise ValueError("Not a twelfth.")
96
97
return frac_least_terms(x, 12)
0 commit comments