Name

Exp Function

Syntax

function Exp(X: Floating-point type): Extended;

Description

The Exp function computes e x. The Exp 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 X is a signaling NaN, positive infinity, or negative infinity, Delphi reports runtime error 6 (EInvalidOp).

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

  • If the result is too large, Delphi reports runtime error 8 (EOverflow).

See Also

Ln 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.