Measure-Based Functions: |
|
Extended __fastcall RadToDeg(Extended Radians);
The RadToDeg() function is used to calculate the equivalent value of an angle from radians to degrees. This function applies the formula:
360˚ = 2 * Pi
which is
1˚ = 2 * Pi
Here is an example:
//--------------------------------------------------------------------------- void __fastcall TForm1::btnConversionClick(TObject *Sender) { Extended Rad = StrToFloat(edtRadians->Text); Extended Deg = RadToDeg(Rad); edtDegrees->Text = FloatToStr(Deg); } //---------------------------------------------------------------------------
Home | Copyright © 2004-2010 FunctionX, Inc. | |