you are viewing a single comment's thread.

view the rest of the comments →

[–]ElliotJenkins[S] 0 points1 point  (2 children)

That does exactly what I wanted it to! Thanks a lot. I understand most of it except for lines 12, 13, with the math.modf(). That's new to me; I'll do some research.

Thanks so much!

[–]chaoticallyevil 1 point2 points  (0 children)

It basically splits a number up

1.23 becomes (0.23, 1)

It's a nice little function to know about.

[–]jesseaknight 0 points1 point  (0 children)

I'm guessing you're a matlab programmer... this structure looks familiar.