I'm having a little problem to understand why python won't cast a float to an int. The following is a code snippet.
import time
now = time.time()
print type(now)
int(now)
print type(now)
And this is the result I get, I can't quite figure out why. Any ideas? Thanks in advance
<type 'float'>
<type 'float'>