Skip to content

Commit c3d7c4a

Browse files
add debug statement
1 parent 2fafec1 commit c3d7c4a

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
@@ -85,7 +85,7 @@ cpdef frac float_to_twelths_frac(a) except *:
8585

8686
cdef double d = float(a)
8787
cdef long long x = <long long>c_floor(12*d + 0.5)
88-
cdef double diff = 12*d - x
88+
cdef double diff = 12*d - <double>(x)
8989
if max(diff, -diff) > 1e-5:
9090
print('spit')
9191
print('%.20f'%a)

0 commit comments

Comments
 (0)