equivalent of int in python and other soft ?

how to correct int in python so it works again ?
already check the python site and not much to understand on this subject !

i got this equations
and it is not from python but from another soft
so int may not do the same thing !
“lfunc”:"(2.0pi/e)((eu/(2.0pi))-int(eu/(2.0pi)))"
and i gives and error after an evaluation = NONE
so not working really welll!
i printed to see if it works as number and it does !
u=2
e=3
print (‘int =’,-int(eu/(2.0pi)))
print (‘int+3 =’,-int(eu/(2.0pi))+3)
and got this
int = 0
int+3 = 3
l1= 0.9056048976068044

thanks for any help
happy 2.6

Please use code next time!


from math import pi
def fu(e,u):
    return (2.0*pi/e)*((e*u/(2.0*pi))-int(e*u/(2.0*pi)))

u=2
e=3
#print ('int =',-int(e*u/(2.0*pi)))
#print ('int+3 =',-int(e*u/(2.0*pi))+3)
print(fu(u,e))
for u in range(5):
    print(u,fu(e,u))

gives:
0 0.0
1 0.9999999999999999
2 1.9999999999999998
3 0.9056048976068044
4 1.9056048976068043