EXP
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> EXP[EXP]:::quoted
EXP --> End
Purpose
The EXP SQL function returns the exponent of the number. The exponent is defined as the constant e raised to the specified power.
Parameters:
- Input (
decimal): the power ofeto calculate.
Returns: e raised to the specified power as a decimal.
Examples
The following example retrieves the exponent of 0:
select exp(0)
--------
1
The following example retrieves the exponent of 1 (e):
select exp(1)
--------
2.718281828459045