1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/EXP.md
2022-12-24 19:12:43 -06:00

947 B

The EXP math function calculates the exponential function (e raised to the power of a numericExpression).

Syntax

result = EXP(numericExpression)

Description

  • e is defined as the base of natural logarithms or as the limit of (1 + 1 / n) ^ n, as n goes to infinity.
  • The numericExpression must be less than or equal to 88.02969 or an ERROR Codes will occur.
  • Value returned is e to the exponent parameter (e = 2.718282 approximately).
  • Values returned are SINGLE by default but will return DOUBLE precision if the result is a variable of type DOUBLE.
  • Positive exponent values indicate the number of times to multiply e by itself.
  • Negative exponent values indicate the number of times to divide by e. Example: e-3 = 1 / e3 = 1 / (e * e * e)

See Also

*LOG *Mathematical Operations