Description |
The DegToRad function is a mathematical function converting a Degrees value to Radians
PI radians = 180 degrees
|
|
Related commands |
|
|
|
Example code : Get the Sine of 30 degrees |
var
float : single;
begin // The Sine of 30 degrees = 0.5
float := Sin(DegToRad(30));
ShowMessage('Sine off 30 degrees = '+FloatToStr(float));
end;
|
Show full unit code |
Sine of 30 degrees = 0.5
|
|