Have a look at this page...
Click here!
I know's it not a programming solution, but covers some good fundamentals.
"Convert your fractions to a decimal. Divide your numerator by your denominator.
Convert the decimal to a percent. Move the decimal two places to the right.
Find the angle. Multiply the decimal by 360 (degrees in a circle), or multiply the percent by 3.60 to get an angle."
Click here!
I know's it not a programming solution, but covers some good fundamentals.
"Convert your fractions to a decimal. Divide your numerator by your denominator.
Convert the decimal to a percent. Move the decimal two places to the right.
Find the angle. Multiply the decimal by 360 (degrees in a circle), or multiply the percent by 3.60 to get an angle."