You are on page 1of 1

GW-BASIC User's Guide

EXP Function
Purpose:
To return e (the base of natural logarithms) to the power of x.

Syntax:
EXP(x)

Comments:
x must be less than 88.02969.
If EXP overflows, the "Overflow" error message appears; machine infinity with the appropriate
sign is supplied as the result, and execution continues.
EXP(x) is calculated in single precision, unless the /d switch is used when GW-BASIC is
executed.

Examples:
10 X = 5
20 PRINT EXP(X-1)
RUN
54.59815
Prints the value of e to the 4th power.

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/EXP.html28/03/2004 21.29.26

You might also like