Exp() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Returns the number e raised to a specified exponent. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

Exp( num_expr )

num_expr is a numeric expression.

Return Value

Float

Description

The Exp() function raises the mathematical value e to the power represented by num_expr. e has a value of approximately 2.7182818.

Note: MapBasic supports general exponentiation through the caret operator (^).

Example

Dim e As Float
e = Exp(1)
' the local variable e now contains
' approximately 2.7182818

See Also:

Cos() function, Sin() function, Log() function