Can someone re-create this in AE?

https://upload.wikimedia.org/wikipedia/commons/2/2a/Pi-unrolled-720.gif
If you unroll a circle 360 degrees you should end to 3.14 times its size. I'm not good at math but I thought I could make this with a simple expression in AE. The result was not the same... Now I feel even more dumb.

For some reason I'm 1 integer off it seems. I get 2.14 or even 2.30 (not sure) if I position the circle at line 0 (like in the example gif). If I start from 1 instead of 0, then I think I might get 3.14 but that is not the right answer - it's right if it starts from 0.

Does someone know hot to make it work?

Here are 3 stills from my result:

https://images.creativecow.net/325455/comp1_00000.png
https://images.creativecow.net/325455/comp1_00076.png
https://images.creativecow.net/325455/comp1_00136.png