views:

215

answers:

3

I've seen this in a snippet:

animation.repeatCount = 1e100f;

my math classes are long time ago. So 1e100f would be a number with 100 zeros? So in this case the programer wanted to have infinite repeatCount?

+2  A: 

I think its infinity in IEEE 754 floating point format

Stan R.
A: 

0x1e100f is decimal 1970191 - could it be that? Doesn't seem like a round enough number to be deliberate.

EDIT

I just found the following on Google.. sounds like your answer

animation.repeatCount = 1e100f; // this is infinity in IEEE 754 floating point format
tomfanning
+8  A: 

According to this page on Timing, Timespaces, and CAAnimation, setting the repeatCount to 1e100f "will cause the animation to repeat until it is removed from the layer."

Thomas Owens
+1 this is the answer in the given context.
Stan R.