From Clomosy Docs

Revision as of 12:44, 7 October 2024 by ClomosyManager (talk | contribs)

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:

See Also