Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the value 1e100f stand for?

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?

like image 459
Thanks Avatar asked Jan 20 '26 04:01

Thanks


1 Answers

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."

like image 117
Thomas Owens Avatar answered Jan 22 '26 18:01

Thomas Owens