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