Help: Quick way to test if value lies within a list of lists of ranges?

2005-10-27 Thread Ben O'Steen
Scenario: = Using PyGame in particular, I am trying to write an application that will run a scripted timeline of events, eg at 5.5 seconds, play xxx.mp3 and put the image of a ball on screen, at 7.8 seconds move the ball up and down. At this point, I hear you say 'Oh, like Flash'. Yes, we

Re: Why the nonsense number appears?

2005-10-31 Thread Ben O'Steen
On Mon, October 31, 2005 9:39, Sybren Stuvel said: > Johnny Lee enlightened us with: >> Why are there so many nonsense tails? thanks for your help. > > Because if the same reason you can't write 1/3 in decimal: > > http://docs.python.org/tut/node16.html > > Sybren > -- > The problem with the world

Re: Why the nonsense number appears?

2005-10-31 Thread Ben O'Steen
On Mon, October 31, 2005 10:23, Sybren Stuvel said: > Ben O'Steen enlightened us with: >> Using decimal as opposed to float sorts out this error as floats are >> not built to handle the size of number used here. > > They can handle the size just fine. What they can't