System.ExpMinus1

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ExpMinus1(const X: Extended): Extended;

C++

extern DELPHI_PACKAGE Extended __fastcall ExpMinus1(const Extended X);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns eX-1.


ExpMinus1 returns the eX-1, where e is Euler's constant and X is the given parameter.

On x86, this function is based on the F2XM1 instruction.

Writeln(ExpMinus1(1.0)); // Displays 1.71828182845905E+0000

See Also