From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
const | const | ||
| Line 20: | Line 20: | ||
} | } | ||
</pre> | </pre> | ||
Revision as of 12:54, 13 November 2024
function Sin(const X: Extended): Extended;
The Sin function is a mathematical function giving the Sine value of a number value given radians.
Example
const
PI = 3.14;
var
floatValue : float;
{
floatValue = Sin(PI/6);
ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
}
Output:
Sin(PI/6) = 0,499770102643102