[Tutor] Time Travel?

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Mon, 4 Mar 2002 16:02:33 -0800 (PST)


On Mon, 4 Mar 2002, Kojo Idrissa wrote:

> Ok, I got my "version" program working, but now something 
> odd has popped up.
> 
> Here's the output again....
> 
> 
> My current age is 31.589136
> **********
> My Major Version Number is 3
> **********
> My Minor Version Number is 1
> **********
> My Revision Number is 589135
> **********
> Kojo Idrissa: Version Number 3.1.589135

*laughing* Thank you, that made my day.



> Notice that the Revision number in the last 2 lines should be the same
> as the decimal value in the age in the first line...but it's not.  
> Sometimes they're equal, but often the Age decimal's last digit is one
> greater than the Revision number's last digit.  I seem to be stepping
> back in time a fraction of a second as the program runs...

Hmmm, that's odd!


> <Looks at Python Docs..."int()...conversion truncates 
> towards zero">
> 
> I'll assume that's what "truncate towards zero" means.


>  So, now that I've demonstrated my ability to read the docs (to myself
> and the rest of the list), have I answered my own question correctly?

Possibly.  If you'd like, you can post the adjusted code, and we can see
if we can fix that moment in time.


Good luck to you!