Computer Science Canada Angles and trig |
Author: | chipanpriest [ Sun Jun 23, 2013 1:15 pm ] | ||
Post subject: | Angles and trig | ||
So I've been playing around with angles and I ran into a problem. This is my code:
When I put my mouse under 45 degrees, it just says it's at 0 degree. I'm not sure if this is something I'm doing wrong or if Turing is messing up. |
Author: | DemonWasp [ Sun Jun 23, 2013 1:24 pm ] |
Post subject: | RE:Angles and trig |
Look up the definition of div in the Turing Help. Then, consider what happens when y = 197 and x = 300 (as in your picture). |
Author: | chipanpriest [ Sun Jun 23, 2013 1:28 pm ] |
Post subject: | Re: RE:Angles and trig |
DemonWasp @ Sun Jun 23, 2013 1:24 pm wrote: Look up the definition of div in the Turing Help. Then, consider what happens when y = 197 and x = 300 (as in your picture).
Oh wow, thanks! I just replaced it with a "/" so it works with real numbers |