Skip to content

Commit 877e87a

Browse files
add more debug info
1 parent a747ccc commit 877e87a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tunits/core/cython/frac.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ cpdef frac float_to_twelths_frac(a) except *:
8787
cdef double d = float(a)
8888
cdef long long x = <long long>c_floor(12*d + 0.5)
8989
if abs(12*d - x) > 1e-5:
90-
print(d, x, 12*d - x, a)
90+
print('spit', d, x, 12*d - x, a, '%20f'%d, '%20f'%a)
9191
raise ValueError("Not a twelfth.")
9292

9393
return frac_least_terms(x, 12)

0 commit comments

Comments
 (0)