DataBasic Reference > Statements and Intrinsic Functions > E > EXP Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

EXP Function (DataBasic) (m618703+exp_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

EXP Function

Raises 'e' to a specified value.

Syntax

EXP(expression)

Syntax Elements

expression is any valid DataBasic expression or any string, substring, or value; expressed as a variable name, a value, or a string enclosed in quotes.

Operation

No indication is made if overflow occurs.

If there is no PRECISION statement in the program, the value is returned rounded to the nearest four decimal places. Otherwise, the number of decimal places returned is as specified by the PRECISION statement.

In each case, the significant decimal places returned are the result of rounding. However, only up to five places are significant: if the PRECISION statement specifies a precision greater than five, trailing zeroes are appended to the five significant places so as to return the numbers of places specified.

Examples

A = "32"
B = EXP(A)
PRINT B

Prints the value of e raised to 32.

Z = LN(X)
Y = EXP(Z)

Assigns the anti-log of Z to variable Y.

RealityV15.1 (MoTW) Revision 7Comment on this topic