From Clomosy Docs

Revision as of 11:29, 28 February 2023 by ClomosyManager (talk | contribs) (Created page with " function Sin(const Number Extended):Extended; The Sin function is a mathematical function giving the Sine value of a Number value given radians.<br> '''Example:'''<br> '''const''' PI = 3.14;<br> '''var''' floatValue : float;<br> '''begin'''<br> floatValue := Sin(PI/6); ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));<br> '''end;''' '''Output:'''<br> Sin(PI/6) = 0,499770102643102")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

function Sin(const Number 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;
begin
floatValue := Sin(PI/6); ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
end;

Output:

Sin(PI/6) =  0,499770102643102