xHarbour Reference Documentation > Function Reference |
Calculates the value of e raised by an exponent.
Exp( <nExponent> ) --> nAntiLogarithm
The function returns the numeric anti-logarithm of <nExponent>.
This function returns the value of e raised to the power of <nExponent>. It is the inverse function of Log(). Note that <nExponent> cannot be larger than 46. Otherwise, a numeric overflow is created.
See also: | Log(), SET DECIMALS, SET FIXED |
Category: | Mathematical functions , Numeric functions |
Source: | rtl\math.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example shows return values of Exp() PROCEDURE Main SET DECIMALS TO 15 ? Exp(1) // result: 2.718281828459045 ? Exp(-1) // result: 0.367879441171442 ? Exp(46) // result: 94961194206024470000.000000000000000 ? Exp(46.1) // result: ************************************ RETURN
http://www.xHarbour.com