From Clomosy Docs

Revision as of 13:29, 24 December 2024 by ClomosyAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Calculates the arctangent of a given number.
In Clomosy code, ArcTan returns the arctangent of X.
X is a real-type expression that gives an angle in radians.

Example

var
   floatValue : single;
 
 const
   PI = 3.14;
 
 {
   // The ArcTan of PI/2 should give 1.0
   floatValue = ArcTan(PI/2);
   ShowMessage('ArcTan of PI/2 = '+FloatToStr(floatValue));
 }


Output:

See Also