Skip to content

Commit 99b4612

Browse files
add debug statement
1 parent 02e9178 commit 99b4612

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tunits/core/cython/frac.pyx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ cpdef frac float_to_twelths_frac(a) except *:
8787
cdef long long x = <long long>c_floor(12*d + 0.5)
8888
cdef double diff = 12*d - x
8989
if max(diff, -diff) > 1e-5:
90-
print(f'%.20f'%diff)
90+
print('spit')
91+
print('%.20f'%a)
92+
print('%.20f'%d)
93+
print(x)
94+
print('%.20f'%diff)
9195
raise ValueError("Not a twelfth.")
9296

9397
return frac_least_terms(x, 12)

0 commit comments

Comments
 (0)