Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try:

%cython
cimport cython
@cython.boundscheck(False)
@cython.wraparound(False)
@cython.cdivision(True)
def f():
    cdef long a
    a=int(1.5)

I think the problem is that you are calling the python long function. Instead, you can either do the above (or use your floor idea).