| 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).
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.