Skip to content

Commit 1927f7d

Browse files
authored
Merge pull request #961 from boriel-basic/docs
doc: add EXP() documentation
2 parents f472b70 + f4b52e2 commit 1927f7d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/exp.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# EXP
2+
3+
## Syntax
4+
5+
```
6+
EXP(numericExpression)
7+
```
8+
9+
10+
## Description
11+
12+
Returns _e_ to the power of _numeric expression_ given,
13+
_e_ is a real number, which can be obtained with `EXP(1)`.
14+
15+
Both the argument and the result are of type `Float`.
16+
17+
## Examples
18+
19+
```basic
20+
PRINT "e = "; EXP(1)
21+
PRINT "e^2 = "; EXP(2)
22+
```
23+
24+
## Remarks
25+
26+
* This function is 100% Sinclair BASIC Compatible
27+
* If the given argument type is not float, it will be [converted](cast.md) to float before operating with it.
28+
29+
## See also
30+
31+
* [LN](ln.md)

0 commit comments

Comments
 (0)