Skip to content

Commit 1e6c6f5

Browse files
nit
1 parent 0f56fb4 commit 1e6c6f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tunits/core/cython/frac.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ cpdef frac float_to_twelths_frac(a) except *:
8787
cdef double raised_d = 12.0*d
8888
cdef long long x = <long long>c_floor(raised_d + 0.5)
8989
if not (-1e-5 < raised_d - x < 1e-5):
90-
print(raised_d, x, <long long>(raised_d))
91-
raise ValueError("Not a twelfth.")
90+
raise ValueError(f"{a} with 12*a={raised_d} Not a twelfth.")
9291
return frac_least_terms(x, 12)
9392

9493

0 commit comments

Comments
 (0)