Skip to content

Commit 23cd874

Browse files
nit
1 parent 3e474d7 commit 23cd874

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-
if fabs(12*d - x) > 1e-5:
88+
if c_fabs(12*d - x) > 1e-5:
8989
print('spit', d, x, 12*d - x, a, '%.20f'%d, '%.20f'%a, '%.20f'%(12*d))
9090
raise ValueError("Not a twelfth.")
9191

0 commit comments

Comments
 (0)