ReadyBASIC
BASIC Language Reference Manual > Command and Function Reference >

EXP Function

Summary

Calculates the value of e (the base of the natural logarithm, or approximately 2.71828) raised to the power of a given value.

Syntax

EXP(exponent)

Remarks and Examples

Calculates the value of e (the base of the natural logarithm, or approximately 2.71828) raised to the power of a given value. In other words, EXP(a) returns the value of ea.

The exponent argument may be an integer or floating-point value. The result returned is a floating-point value.

Examples:

PRINT EXP(0)
1.0

PRINT EXP(1)
2.7182818284590455

PRINT EXP(-7.5)
5.530843701478336E-4

PRINT LOG(EXP(1))
1.0

See also: LOG




Copyright 2006-2012, Kevin Matz, All Rights Reserved.