We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e474d7 commit 23cd874Copy full SHA for 23cd874
1 file changed
tunits/core/cython/frac.pyx
@@ -85,7 +85,7 @@ cpdef frac float_to_twelths_frac(a) except *:
85
86
cdef double d = float(a)
87
cdef long long x = <long long>c_floor(12*d + 0.5)
88
- if fabs(12*d - x) > 1e-5:
+ if c_fabs(12*d - x) > 1e-5:
89
print('spit', d, x, 12*d - x, a, '%.20f'%d, '%.20f'%a, '%.20f'%(12*d))
90
raise ValueError("Not a twelfth.")
91
0 commit comments