0 Members and 3 Guests are viewing this topic.
public double RadToDeg(double rad) { double deg = ((rad * Math.PI) / (double)180); return deg;}
I'm pretty sure the problem is that your conversion factor is inverted. Degrees = radians * 180 / pi.
@parser, check the category this is computer languages help.
Quote from: BlakPilar on October 08, 2011, 06:11:56 pm@parser, check the category this is computer languages help.yeah but you said that your answer on calc differed from your comp.
Quote from: parser padwan on October 08, 2011, 06:13:15 pmQuote from: BlakPilar on October 08, 2011, 06:11:56 pm@parser, check the category this is computer languages help.yeah but you said that your answer on calc differed from your comp.The calculator is probably right. He's having trouble writing a math function in C#.