From f4b52e28b0d20c9b212814539cef186c8953ddc4 Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Sun, 23 Feb 2025 18:06:17 +0100 Subject: [PATCH] doc: add EXP() documentation --- docs/exp.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/exp.md diff --git a/docs/exp.md b/docs/exp.md new file mode 100644 index 000000000..263440467 --- /dev/null +++ b/docs/exp.md @@ -0,0 +1,31 @@ +# EXP + +## Syntax + +``` +EXP(numericExpression) +``` + + +## Description + +Returns _e_ to the power of _numeric expression_ given, +_e_ is a real number, which can be obtained with `EXP(1)`. + +Both the argument and the result are of type `Float`. + +## Examples + +```basic +PRINT "e = "; EXP(1) +PRINT "e^2 = "; EXP(2) +``` + +## Remarks + +* This function is 100% Sinclair BASIC Compatible +* If the given argument type is not float, it will be [converted](cast.md) to float before operating with it. + +## See also + +* [LN](ln.md) \ No newline at end of file