summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKaligule <Kaligule@googlemail.com>2019-07-29 07:53:37 +0200
committerjlippmann <johannes.lippmann@paessler.com>2019-07-29 18:17:52 +0200
commita2c81a74555ca098da4d03a54f44664d933d7182 (patch)
tree2660d75f67ae21d102200619147c5956f9a65849 /modules
parentbecbb7b525e1cc9bf1520a0ac94b9e9f799f6169 (diff)
Add a reference to pow to the description of exp.
This might be especially usefull since godot script doesn't support ** or ^ as operators, so beginners might search for the exponential function, when what they really need is the pow function. This is exactly what happened to me and since I couldn't find helpfull information in the documentation I had to look it up online, where I found the answer on a helpfull [reddit thread](https://www.reddit.com/r/godot/comments/3mvwz0/how_do_i_do_exponents_in_godot/). @akien-mga told me how to reference methods here: godotengine#30909
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/doc_classes/@GDScript.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml
index f65f2a8935..ad47323613 100644
--- a/modules/gdscript/doc_classes/@GDScript.xml
+++ b/modules/gdscript/doc_classes/@GDScript.xml
@@ -322,6 +322,7 @@
<description>
The natural exponential function. It raises the mathematical constant [b]e[/b] to the power of [code]s[/code] and returns it.
[b]e[/b] has an approximate value of 2.71828.
+ For exponents to other bases use the method [method pow].
[codeblock]
a = exp(2) # Approximately 7.39
[/codeblock]