summaryrefslogtreecommitdiff
path: root/doc/classes/int.xml
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2022-10-30 18:48:23 +0100
committerGitHub <noreply@github.com>2022-10-30 18:48:23 +0100
commitaaa931659e734953f649e229ca587b5b64703a02 (patch)
treea11bb57c7f24ef0d196c2a1fb8d5048f799256eb /doc/classes/int.xml
parentad3f2a234082f0d62820094199c05855115c1341 (diff)
parentc9b467ac154d4cda4b52813943bd26c67f40c6de (diff)
Merge pull request #68050 from Anutrix/int-float-docs
Added missing docs to built-in types float and int
Diffstat (limited to 'doc/classes/int.xml')
-rw-r--r--doc/classes/int.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/int.xml b/doc/classes/int.xml
index 868a8e9944..689cb7fe8e 100644
--- a/doc/classes/int.xml
+++ b/doc/classes/int.xml
@@ -161,12 +161,14 @@
<return type="Vector4" />
<param index="0" name="right" type="Vector4" />
<description>
+ Multiplies each component of the [Vector4] by the given [int].
</description>
</operator>
<operator name="operator *">
<return type="Vector4i" />
<param index="0" name="right" type="Vector4i" />
<description>
+ Multiplies each component of the [Vector4i] by the given [int].
</description>
</operator>
<operator name="operator *">
@@ -187,12 +189,20 @@
<return type="float" />
<param index="0" name="right" type="float" />
<description>
+ Raises an [int] to a power of a [float]. The result is a [float].
+ [codeblock]
+ print(8**0.25) # 1.68179283050743
+ [/codeblock]
</description>
</operator>
<operator name="operator **">
<return type="int" />
<param index="0" name="right" type="int" />
<description>
+ Raises an [int] to a power of a [int].
+ [codeblock]
+ print(5**5) # 3125
+ [/codeblock]
</description>
</operator>
<operator name="operator +">