English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Erlang exp method

Numbers in Erlang

This method returns the exponent of the specified value.

Syntax

exp(X)

Parameter

X-Specify a value for the exponential function.

Return Value

The return value is a floating-point value representing the exponential value.

-module(helloworld). 
-import(math,[exp/1]). 
-export([start/). 
start() ->
   Aexp = exp(3.14), 
   io:fwrite("~p~n",[Aexp]).

When we run the above program, we will get the following results.

23.103866858722185

Numbers in Erlang