BEWARE: Clip timing floats can make your timeline act inconsistently.

Hello! I just spent a week trying to figure out what I’m doing wrong only to have a brilliant discovery.

I have a timeline that among other things, activates 2 objects that need to stay ACTIVE when the timeline reaches its end. One of them does, the other one doesn’t. After spending a few days I noticed that when you move the clip on the timeline, the floats in the inspector get changed. 5 becomes 4.9999999999999999999998, 2.5 becomes 2.49999999999999999999998 etc

Unfortunately, the timeline reads these numbers as they are, so… If you have a timeline that is 5s long, the object that is active until 4.9999999999999999999998 won’t be active once the timeline finishes.

Hope this clears some headaches.
Cheers!

Good find, we went to great lengths to avoid those numerical issues so additional information on how to recreate them would be appreciated!

Does the clip inspector show whole numbers in frame column for those clips?

I get this issue a lot, infact, it is harder to have whole numbers than it is to have infinte decimal points - I find.

I have a track that says the last clip finishes at 628.00f / 10:27s (when you click on a clip to move it, the black label at the top displays this number). In the inspector for this clip the end frame is actually 627.99999999996f / 10.466666666666s

I always change the timeline to use seconds instead of frames.