Name

ArcTan Function

Syntax

function ArcTan(Number: Floating-point type): Extended;

Description

The ArcTan function returns the arctangent in radians of Number. The ArcTan function is built-in.

Tips and Tricks

  • Delphi automatically converts Integer and Variant arguments to floating-point. To convert an Int64 argument to floating-point, add 0.0.

  • If Number is positive infinity, the result is /2 (or more accurately, Delphi’s best approximation of /2); if Number is negative infinity, the result is an approximation of -/2.

  • If Number is a quiet NaN, the result is Number.

  • If Number is a signaling NaN, Arctan reports runtime error 6 (EInvalidOp).

See Also

Cos Function, Sin Function

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.