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
andVariant
arguments to floating-point. To convert anInt64
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); ifNumber
is negative infinity, the result is an approximation of -/2.If
Number
is a quiet NaN, the result isNumber
.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.