From Clomosy Docs
function Sin(const X: Extended): Extended;
The Sin function is a mathematical function giving the Sine value of a number value given radians.
Example
TRObject Syntax
const
PI = 3.14;
var
floatValue : float;
{
floatValue = Sin(PI/6);
ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
}
Base Syntax
const
PI = 3.14;
var
floatValue : float;
begin
floatValue := Sin(PI/6);
ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
end;
Output:
Sin(PI/6) = 0,499770102643102